This repo & extension is no longer maintained/supported, please consider using the successor vscode-unwanted-extensions instead.
It's exactly the same extension but still maintained and getting more features.
This extensions, tries to help out with extensions which are not recommended for specific workspaces.
I have writen a more complete blog post about the whole topic and this extension, 👀 read it here
Until now, it seems not to be possible to automate enabling or disabling extensions per project/workspace VSCode Team is working on profiles, which might be the solution in the future for that.
Until then, its not easy to handle it. This extension tries to improve the experience for developers.
This extension allows you to put unwanted extensions, into the already existing .vscode/extensions.json
file, which already seems to kind of support the property unwantedRecommendations
. Simply put your vscode extension id's in this array.
Following is a possible example for using Volar
, and check for disabled Vetur
, Typescript Vue Plugin
amd (@builtin) Typescript Language Features
:
{
"recommendations": [
"vue.volar"
],
"unwantedRecommendations": [
"vscode.typescript-language-features",
"octref.vetur",
"vue.vscode-typescript-vue-plugin"
]
}
Note: This extension is only handling the
unwantedRecommendations
, as therecommendations
are already handled by VSCode.
- This extension will automatically run if the
.vscode/extensions.json
file exists. (When opening the folder/workspace). - If there are
unwantedRecommendations
, it will go through them and check if theextension
is enabled. - If it is enabled, it will show a warning message including an info to disabled the extension manually.
- After all extensions are checked, a popup will ask to show all extensions in the extension-gallery.
After the user disabled manually all unwanted extensions, the workspace should work fine, even after restarts/reboots.
-
When opening a project, this extension checks all configured
unwantedRecommendations
and reports the still enabled extensions: -
After click "yes" on the provided popup, it will bring you to the extensions, to disable them manually: (list will be already filtered to the specific extensions)
-
You / the user can now disable the extensions manually - preferably using the Disable (Workspace) action
-
On the next restart/reload of vscode, the extension will check again and notify that all is fine (if all
unwantedRecommendations
-extensions are disabled)
Further when there is no extension defined as unwantedRecommendations
, this extension will show the following information:
You can also execute the check manually, using the vscode command
Check for unwanted recommendations (extensions)
.vscode/extensions.json
should contain the list of unwanted extensions within the unwantedRecommendations
property. See above for details.
Workspaces / Multi-root workspaces
You can use the above approach if you are running a workspace.
Just place the .vscode/extensions.json
file into your workspace root directory.
Alternatively you can also put the unwanted extensions within your ***.code-workspace
file.
{
"extensions": {
"unwantedRecommendations": [
"octref.vetur",
]
}
}
No settings yet.
The extension was developed by Fabian Gander aka Cyclodex, sponsored by GARAIO AG. Thanks!