microsoft / vscode

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

Markdown default editor setting cannot be saved #196228

Closed tccrabyoguy closed 12 months ago

tccrabyoguy commented 12 months ago

Type: Bug

  "workbench.editorAssociations": {
    "*.md": "default"
  }

I configured the markdown editor as default , but it is deleted automatically when I restart the VS Code. Please fix it. Thanks!

Settings: image

After restart: image

VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:48:05.904Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz (16 x 2304)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.65GB (2.03GB free)| |Process Argv|--crash-reporter-id 66fb2ebe-81a3-4715-9ea7-f174dce48d0a| |Screen Reader|no| |VM|0%|
Extensions (32) Extension|Author (truncated)|Version ---|---|--- jsoncrack-vscode|Ayk|2.0.2 emojisense|bie|0.10.0 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.8.5 epub-reader|cwe|1.0.0 vscode-office|cwe|3.1.7 xml|Dot|2.5.1 vscode-html-css|ecm|1.13.1 prettier-vscode|esb|10.1.0 auto-close-tag|for|0.5.14 auto-complete-tag|for|0.1.0 auto-rename-tag|for|0.1.10 markmap-vscode|ger|0.1.1 vscode-drawio|hed|1.6.6 svg|joc|1.5.3 vscode-abap|lar|0.5.8 markwhen|Mar|1.4.2 markdown-shortcuts|mdi|0.12.0 hexeditor|ms-|1.9.12 live-server|ms-|0.4.11 winregistry|mur|0.0.1 indent-rainbow|ode|8.3.1 excalidraw-editor|pom|3.6.1 vscode-css-peek|pra|4.4.1 developer-theme-dark|Raj|5.0.0 vscode-xml|red|0.26.1 vscode-yaml|red|1.14.0 markdown-preview-enhanced|shd|0.8.9 code-spell-checker|str|3.0.1 vscode-icons|vsc|12.6.0 markdown-all-in-one|yzh|3.5.1 html-css-class-completion|Zig|1.20.0 (4 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30856252 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 282f8724:30602487 f6dab269:30613381 showlangstatbar:30737416 0bi6i642:30841073 03d35959:30757346 57b77579:30736110 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofa:30866041 pythonnosmt12:30797651 pythonidxpt:30866567 pythonnoceb:30805159 copilotsettingc:30859502 dsvsc013:30795093 dsvsc014:30804076 diffeditorv2:30821572 dsvsc015:30845448 pythontestfixtcf:30866406 pyreplss1:30865275 pythoncet0:30866520 h48ei257:30867296 pythontbext0:30864172 ```
gjsjohnmurray commented 12 months ago

Does this also happen if you start VS Code from a command line with all extensions disabled?

code --disable-extensions
tccrabyoguy commented 12 months ago

Does this also happen if you start VS Code from a command line with all extensions disabled?

code --disable-extensions

It caused by markdown preview enhanced, thanks for your help!

gjsjohnmurray commented 12 months ago

/causedByExtension

vscodenpa commented 12 months ago

This issue is caused by an extension, please file it with the repository (or contact) the extension has linked in its overview in VS Code or the marketplace for VS Code. See also our issue reporting guidelines. If you don't know which extension is causing the problem, you can run Help: Start extension bisect from the command palette (F1) to help identify the problem extension.

Happy Coding!