You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We now support a language filter in the Settings editor. This filter allows one to view and modify language-specific settings.
Navigate to the Settings editor.
Type a language filter such as @lang:css into the search widget.
All language-overridable settings should show up.
Let's say you're in the User tab with the @lang:css filter. The setting value that should show up for a simple setting such as editor.tabSize is as follows:
If you set a language-specific value in the user settings file for that setting, that value should be rendered.
Otherwise, if an extension you have or wrote contributes a default language-specific value for that setting, that value should be rendered. You can hit this case by writing/modifying an extension that adds on a configurationDefaults object within the contributes section, where within the configurationDefaults object, you add an object with a key such as [css] to represent the language-specific default values. An example is at https://github.com/microsoft/vscode/blob/main/extensions/css-language-features/package.json#L901.
Otherwise, if there is a plain user settings value for that setting, that value should be rendered.
Otherwise, the default value of that setting should be rendered.
In the workspace tab, the value that should show up is similar to point 4 above, though the precedence order would be language-specific workspace value > language-specific default value > workspace value > default value.
Verify that for language-specific values, one must manually reset the value in order for the language override value to disappear from the settings json file.
The text was updated successfully, but these errors were encountered:
rzhao271
changed the title
Test: Language-specific settings in the Settings editor
Test: Language-specific settings filter in the Settings editor
Mar 21, 2022
Refs: #131707
Complexity: 4
Create Issue
We now support a language filter in the Settings editor. This filter allows one to view and modify language-specific settings.
@lang:css
into the search widget.@lang:css
filter. The setting value that should show up for a simple setting such aseditor.tabSize
is as follows:configurationDefaults
object within thecontributes
section, where within theconfigurationDefaults
object, you add an object with a key such as[css]
to represent the language-specific default values. An example is at https://github.com/microsoft/vscode/blob/main/extensions/css-language-features/package.json#L901.The text was updated successfully, but these errors were encountered: