-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default language settings override multiple language ones #206460
Comments
According to https://code.visualstudio.com/docs/getstarted/settings#_settings-precedence it's indeed a bug:
There is no distinction between single/multi language setting. Later in the doc:
I guess the logic for single-overrides-multi is not making this distinction:
|
I am not sure if I understood the issue. Can you please be crisp and clear about the issue? |
TBH I'm not sure about what do you expect since I've already given a concrete example, some links to points where the documentation contradicts what's observed and an analysis of what may be the cause, so at the risk of repeating myself consider the following scenarios:
Currently 1 will override 2 and 3 as expected, but 3 will override 2. This is arguably wrong and doesn't follow the documented behavior as I mentioned before:
|
This seems to be contradicting your statement. If one overrides 2 and 3 and how 3 can override 2? Hence, I am asking for repro steps |
I don't see the problem, 1 overrides 3 overrides 2, so 1 overrides both of them. |
Then what is the problem? To get rid of confusion, please provide clear steps to reproduce with a concrete example and what is current behaviour and what do you expect? |
I've thoroughly explained everything. The problem is in 3 overrides 2, of course. As I've defined:
I'm going to spell "3 overrides 2": A default value set by an extension for a language overrides a value set by the user for the same language (alongside another language, as in But, for the third time, the documentation states:
If you don't see the contradiction in that, then I don't have anything else to add. |
This should not happen, if an extension contributes default value for a language and user also defines a value for the same language, then user value should be taken. If this is not happening, I would request to provide proper step by step set up for me to reproduce. Giving steps will help both of us to be on same page. |
I've provided an example in the opening post, but then again:
"[markdown][latex]": {
"editor.wordWrap": "bounded",
},
"[markdown]": {
"editor.wordWrap": "bounded",
},
|
/duplicate Thanks, this is helpful. Now I understand that settings of single language in default settings is overriding settings of multi language in user settings. |
Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines. Happy Coding! |
Default language specific settings override explicit multiple language settings.
For example:
tabSize
only for markdownwordWrap
for none of themAt least regarding
wordWrap
I know it's set as a language default. Moreover, after separately setting the same options for both languages, all of them are correctly configured.I don't think this behavior is convenient or intuitive. Explicitly set options, even if they are for a union of languages, should override implicit default ones.
The text was updated successfully, but these errors were encountered: