VSCodeTriageBot / testissues

Clone of the vscode issue stream.
36 stars 22 forks source link

Extensions' configuration in .vscode/settings.json using the same key names #48738

Open VSCodeTriageBot opened 3 days ago

VSCodeTriageBot commented 3 days ago

Type: Bug

Hi, It seems there is a mishap in VsCode which allows extensions to be configured through .vscode/settings.json file in such a way that key names for each extension are not prefixed with a unique extension ID, but are rather allowed to be arbitrarily chosen by extension developers.

For example, if you want to configure one of the 2 following extensions (vscode-stylelint and vscode-stylelint-plus) to be enabled, through .vscode/settings.json, and want to disable another (e.g. to force all the devs to use 1st instead of the 2nd extension), you'll find it difficult, because they share exact the same set of key names in settings.json file, probably due to the fact the 2nd is the fork of the 1st.

Both of their respective repository pages contain the same key names for the settings.json file: 1 https://github-com/stylelint/vscode-stylelint 2 https://github-com/hex-ci/vscode-stylelint-plus

Is there a way to configure .vscode/settings.json in such a way that we can enable extension No 1 and disable extension No 2 (key name in that case would be, according to their repo pages - "stylelint.enable")

Cheers

VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z) OS version: Windows_NT x64 10.0.17763