hiroshinishio / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
0 stars 0 forks source link

"Language-specific workspace settings" does not override "Language-specific user settings" #4

Open hiroshinishio opened 3 months ago

hiroshinishio commented 3 months ago

Type: Bug

I'd like to use defaultFormatter with biome extention for some TypeScript workspace that has biome. But workspace setting does not override user setting.

I have user setting like below:

    "[typescript]": {
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "editor.tabSize": 2,
    },

I set workspace setting like below:

  "[javascript][typescript][svelte]": {
    "editor.tabSize": 2,
    "editor.insertSpaces": true,
    "editor.defaultFormatter": "biomejs.biome"
  },

If I remove the defaultFormatter line in user setting, vscode uses workspace's setting so those have correct values.

Document said "Language-specific workspace settings" is stronger than "Language-specific user settings": https://code.visualstudio.com/docs/getstarted/settings#_settings-precedence

Thank you.

VS Code version: Code 1.92.2 (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz (6 x 3000)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|undefined| |Memory (System)|31.78GB (13.83GB free)| |Process Argv|--crash-reporter-id ca2a1b94-1896-42fa-87dc-e58738a43fa3| |Screen Reader|yes| |VM|0%|
gitauto-ai[bot] commented 3 months ago

Sorry, we have an error. Please try again.

Have feedback or need help? Feel free to email info@gitauto.ai.

gitauto-ai[bot] commented 3 months ago

Click the checkbox below to generate a PR!

@hiroshinishio, You have 0 requests left in this cycle which refreshes on 2024-09-04 02:56:25+00:00. If you have any questions or concerns, please contact us at info@gitauto.ai.

gitauto-stage[bot] commented 3 months ago

Welcome to GitAuto! 🎉 Click the checkbox below to generate a PR!

gitauto-ai[bot] commented 3 months ago

Sorry, we have an error. Please try again.

Have feedback or need help? Feel free to email info@gitauto.ai.