This extensions, tries to help out with extensions which are not recommended for specific workspaces.
This is the continuation of the previous extension Unwanted Recommendations which is not maintained anymore.
The extension therefore had to be migrated to a new publisher.
I have written 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.
The VSCode Team introduced profiles, which went into a good direction and might be the solution in the future for that.
But still, there seem to be issues or unsupported details, like
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.
.vscode/extensions.json
file exists. (When opening the folder/workspace).unwantedRecommendations
, it will go through them and check if the extension
is enabled.After the user disabled manually all unwanted extensions, the workspace should work fine, even after restarts/reboots.
unwantedRecommendations
are definedWhen 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:
When manually checking using the command (see below) and no extensions.json
file exist:
No unwantedRecommendations
configured within extension.json
This extensions runs automatically when you open your project including the .vscode/extensions.json
You can also execute the check manually, using the vscode command
Check for unwanted extensions
.vscode/extensions.json
should contain the list of unwanted extensions within the unwantedRecommendations
property. See above for details.
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",
]
}
}
The extension was developed by Fabian Gander aka Cyclodex.
The initial version was sponsored by GARAIO AG. Thanks!