Closed Bug 1963452 Opened 1 year ago Closed 1 year ago

vscode linting configuration does not properly override user config

Categories

(Developer Infrastructure :: Lint and Formatting, task)

task

Tracking

(firefox140 fixed)

RESOLVED FIXED
140 Branch
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.

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.

Flags: needinfo?(standard8)
Assignee: nobody → sfriedberger
Status: NEW → ASSIGNED

(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.

Flags: needinfo?(standard8)
Pushed by sfriedberger@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f7177e229beb make vscode language settings override user settings r=Standard8
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: