microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.28k stars 29.31k forks source link

VSCode deleted my profiles data after connecting to another device #230570

Open ylazy opened 1 month ago

ylazy commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes

Steps to Reproduce:

I'm using VSCode Portable on my portable SSD Drive in an Asus VivoBook laptop. After connecting my SSD to another machine (Microsoft Surface Pro), then switching back to my laptop, ALL MY PROFILES ARE GONE!!!

OMG! This's my work for a very long time. I've built so many snippets, settings, shortcuts... And they're gone! I tried many data recovery applications but received corrupted files.

I searched then I found this issue but didn't understand why it and related issues have been closed or are unavailable for new comments?

I also can't believe that such a critical issue that leads to DATA LOST is still remains unresolved for a long time.

I understand that this can be a duplicate but I have to open this issue for user voices.

Thanks!

ylazy commented 1 month ago

It is noteworthy that I didn't do any setting sync.

I just connected my SSD to another device, opened VSCode to run a project test, then switched back to the original device. The ssd's driver letter on my first device is Y:, on my second device is E:, so I renamed to Y: before running the project test. That's all I did.

I didn't see any warning or deletion confirmation. My profiles folder has been deteled silently. Why can an IDE remove user data silently?

ylazy commented 1 month ago

I added information that there are no accounts signed in on my VSCode Portable.

sandy081 commented 1 month ago

Can you please provide steps to reproduce the issue?

ylazy commented 1 month ago

Can you please provide steps to reproduce the issue?

My devices:

Step:

sandy081 commented 1 month ago

How about settings stored in the data/user-data/User/ folder? Are they got deleted too?

ylazy commented 1 month ago

How about settings stored in the data/user-data/User/ folder? Are they got deleted too?

I'm not sure about the application scope settings.json file because I hardly change it so I didn't pay attention to it. If needed I'll try to reproduce this issue next monday to find more info about this.

Thanks!

ylazy commented 1 month ago

I think the application scope is fine, because all extensions that installed on the default profile are still alive.