While it seems a little offtopic, I wanted to post a warning here to alert anyone that uses Visual Studio Code on their developments. It happened to me something that I never expected nowadays: I lost all the work done in an entire new application I was developing.
I already opened an issue at the vsc github, and I expect it being useless. That is a quote for was happened:
Today I started Visual Studio Code and it opened by default the project I was working on yesterday. The project is a Vuejs web application, opened as a local folder, and not included into any version control. I noticed that as I clicked, two instances of VSCode where opened, that seemed equal to me, so I closed the one opened last.
When running the aplication I saw multiple errors that shouldn't be there, and when I checked the files all the changes for the last 24 hours where reverted.
No message was shown, no confirmation dialogs and no questions for actions. It simply ate the work.
I've always been a windows guy, my main system is a W10 and I always use Visual Studio (the full env) at work and on my private projects. Only recently started using Code in windows for Iot sketches, due to platformio. But three weeks ago installed kubuntu, and as I was lacking vs2017 I started to use code for anything.
This was a web application that I recently started and I worked very hard on it for the past week. I mean that I'm very moderate about the interval being lost. As it's a node/vue application, I can't say at the first glance if packages where also removed or if internal configurations are affected, but it seems to be reverted almost to the boilerplate. Only first save of every file is present. (all files seem present, but only their initial versions)
I have found more incidents like this one, but it always involved some kind of version control sync error or remote storage. This one happened on private local files as I've been using code as a simple editor. Personally, and as a developer I found this catastrophic. A program should never destroy information and even when doing it as commanded, should always ask confirmation and store backups. It's worse than disk corruption. Now I have to inspect all the files I developed with it, searching for unspected (and hidden) changes.
So be warned about Visual Studio Code, and take this as my recomendation on using anything else.