yzhang-gh / vscode-markdown

Markdown All in One
https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one
MIT License
2.93k stars 325 forks source link

Keep formatting TOC to 4 spaces even when formatter off and indent size 2 #1407

Closed TheGeeKing closed 7 months ago

TheGeeKing commented 7 months ago

Type: Bug

I have set all my format on save and others to false, unbind default formatter. Markdown All in One keeps formatting TOC to 4 spaces even when indent size is set to 2 spaces and using "markdown.extension.list.indentationSize": "inherit"

Linked to https://github.com/yzhang-gh/vscode-markdown/issues/364 MD007 violation

Extension version: 3.6.2 VS Code version: Code 1.87.2 (863d2581ecda6849923a2118d93a088b0745d9d6, 2024-03-08T15:20:17.278Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 7 5800X 8-Core Processor (16 x 3793)| |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| |Load (avg)|undefined| |Memory (System)|31.93GB (6.08GB free)| |Process Argv|--crash-reporter-id 8b6a4ca3-9a18-47ab-a722-4d76191d73ac| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:30998030 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfcontrol:30979541 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonaic:30996667 dsvsc021:30996838 ```
TheGeeKing commented 7 months ago

seems fixed. I didn't do anything special since I posted the issue except rolling back my settings.json to before I disabled everything that could have cause this issue. Even setting "markdown.extension.list.indentationSize": "adaptive", doesn't cause the issue as it should based on #364