Atom just erased an entire file

I was just editing my Javascript file on atom until I clicked saved and everything just disappeared, I can’t even undo and that took me very long to make now and Atom just erased it all. Any way for me to get my file back or should I just stop using Atom forever?

Also, anyone know why the heck Atom did this do me like this, I can’t even undo it. This is a huge bug (if it is) if it erased a file like that.

OS: Windows 10
Atom: 1.54.0
Mode: Safe-mode

Also, I am using safe-mode, meaning that packages, except core ones are disabled by default, meaning that Atom itself is at fault here. I had safe-mode on because the normal start-up of Atom wasn’t working because of package conflicts.