vscode linting configuration does not properly override user config
Categories
(Developer Infrastructure :: Lint and Formatting, task)
Tracking
(firefox140 fixed)
| Tracking | Status | |
|---|---|---|
| firefox140 | --- | fixed |
People
(Reporter: simonf, Assigned: simonf)
Details
Attachments
(1 external file)
vscode overrides the user config with the workspace config. But if the key for the setting contains multiple languages like [javascript][typescript] that doesn't override the setting for a single language. This is documented here: https://code.visualstudio.com/docs/configure/settings#_note-about-multiple-language-specific-settings
It means that we don't correctly override linters if the user has a setting for a single language. Switching to individual language sections would fix this.
| Assignee | ||
Comment 1•1 year ago
|
||
Mark, you added a comment that maybe implies that this was intentional here: https://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/backend/mach_commands.py#148
# Note, the top-level editor settings are left as default to allow the # user's defaults (if any) to take effect.
So I'm not sure anymore if we want to fix this but I'm adding a patch.
| Assignee | ||
Comment 2•1 year ago
|
||
Updated•1 year ago
|
Comment 3•1 year ago
|
||
(In reply to Simon Friedberger (:simonf) from comment #1)
Mark, you added a comment that maybe implies that this was intentional here: https://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/backend/mach_commands.py#148
# Note, the top-level editor settings are left as default to allow the # user's defaults (if any) to take effect.So I'm not sure anymore if we want to fix this but I'm adding a patch.
I can't remember why I thought that. However, I think preferring our settings is better. Worst case the developer can change the file.
Comment 5•1 year ago
|
||
| bugherder | ||
Description
•