Skip to content

local language specific setting priority is lower than user level language specific setting #168411

@tjx666

Description

@tjx666

reproduce:

  1. install esbenp.prettier-vscode
  2. add following settings to .vscode/settings.json
    "[javascript][javascriptreact][typescript][typescriptreact][vue][json][jsonc][html][css][less][markdown][xml][yaml][svg]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode"
    }
  1. add following settings to ~/Library/Application Support/Code/User/settings.json
    "[javascript]": {
        "editor.defaultFormatter": null
    },
  1. open a js file, try to format it, will warning:

image

Version: 1.74.0 (Universal)
Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
Date: 2022-12-05T16:43:37.594Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 22.1.0
Sandboxed: No

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugconfigVS Code configuration, settings

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions