All extensions are removed when switching profile #6
Comments
Sorry, I'm not understanding the problem. When you switch a profile it'll look at what extensions have been saved for that profile, add the ones that aren't in the workspace and remove the ones that are. This relies on an API exposed by VS Code for the loaded extensions, and if you don't reload VS Code between profile switches (which is what the notification popup prompts you to do) VS Code thinks extensions that have been removed weren't removed. That would explain why switching between the two profiles shows the removal of extensions that should've previously been removed, VS Code wasn't reloaded and thus the API I rely thinks they still exist. |
Thats the problem... |
I just installed this Extension on my Code Instance - Saved the profile and then loaded it without changing anything in between. This extension then proceeded and backuped (and then removed) all extensions. According to the README (as far as I understood) I was expecting the extensions to stay as they were all there when I saved the profile. |
@andreloty @Kadrei are you able to provide me with your |
shure... |
@andreloty Having a look at your Since there's no entry it takes this as a "no extensions should be loaded" and goes ahead and removed all extensions. A likely cause of this is the upgrade from the The easiest fix is to open VS Code, get all your extensions installed and then save the profile, which will force the creation of the property in Admittedly, the migration from |
For me it was a freshly installed version of the plugin so should not be an upgrade problem |
@aaronpowell don't you worry man...
it was my suspicious...
i will give it a try
let's hope for many others to use !! |
@Kadrei it's likely the problem I outlined in the comment on #7 (#7 (comment)) where there were false reports of completion meaning that you end up with corrupt extensions. |
Closing for now as the problem is really my lack of guidance on the upgrade from versions. I'll have to work out how to better handle big changes next time! |
When I switch the profile all extensions are removed.
You can watch what happens here:
https://www.loom.com/share/273be9b0949b46109ae83f576e9c165f
The text was updated successfully, but these errors were encountered: