aaronpowell / vscode-profile-switcher

A VS Code extension for switching settings easily
https://marketplace.visualstudio.com/items?itemName=aaronpowell.vscode-profile-switcher&wt.mc_id=profileswitcher-github-aapowell
MIT License
177 stars 19 forks source link

Disable/Enable extensions instead of Removing/Adding extensions when switching Profile #25

Closed libinvarghese closed 3 years ago

libinvarghese commented 4 years ago

Even though removing and adding extensions works when I switch profiles, sometimes there are those few extensions which I would like to use temporarily (ie enable and disable after usage). In this case

  1. either need to switch profile OR
  2. have the extension in the profileSwitcher.extensionsIgnore in disabled state, and toggle when needed.

Also would it not be easier/faster to disable/enable instead of remove/add?

codeunifier commented 4 years ago

@libinvarghese my thoughts exactly! It does keep the extensions tab clean, but it definitely seems like disabling / enabling would be a faster method. At least having the option to uninstall / disable would be really nice!

aaronpowell commented 3 years ago

It would be a much better idea to just activate/deactivate extensions but unfortunately, it's not possible. Here is the docs for a VS Code extension to work with other extensions, and all it provides is access to extensions, but no way to interact with them.

As frustrating as it is, I do agree with the reason for this, as it means that extensions are protected from one another, you can't have an extension that comes in and turns off others, that'd be an avenue for abuse.

This is why the extension will do a backup of extensions before removing them (or at least, attempt to), so that when you "reactivate" it, it doesn't need to be downloaded.