microsoft / vscode

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

moving lines up and down causes formatting corruption #219242

Open davidcoleman007 opened 1 week ago

davidcoleman007 commented 1 week ago

Type: Bug

when moving text up or down, code and comments have indenting corrupted.

this is most prevalent when moving text across jsdoc comment blocks. it does happen with more complex code blocks as well, i don't have an immediate recordable example ready for that one.

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:13:33.891Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i9-11980HK @ 2.60GHz (16 x 3302)| |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)|63.71GB (29.20GB free)| |Process Argv|--crash-reporter-id d8d9b7bf-ea05-4e4f-bddd-e38795583b25| |Screen Reader|no| |VM|0%|
Extensions (27) Extension|Author (truncated)|Version ---|---|--- copy-path-unixstyle|bai|2.0.0 vscode-pretty-json|chr|2.0.0 npm-intellisense|chr|1.4.5 path-intellisense|chr|2.9.0 vscode-css-modules|cli|0.5.1 postcss|css|1.0.9 vscode-eslint|dba|3.0.8 gitlens|eam|15.1.0 vscode-html-css|ecm|2.0.10 vscode-diff|fab|2.1.2 lintlens|ghm|7.5.0 vscode-test-explorer|hbe|2.21.1 search-node-modules|jas|1.3.0 svg|joc|1.5.3 vscode-jest-test-adapter|kav|0.8.1 pnpm-vscode-helper|lin|0.3.0 remote-wsl|ms-|0.88.2 test-adapter-converter|ms-|0.1.9 vscode-nvm|noj|0.0.2 indent-rainbow|ode|8.3.1 vscode-subword-navigation|ow|1.2.0 vscode-xml|red|0.27.1 trailing-spaces|sha|0.4.1 vscode-stylelint|sty|1.4.0 explorer-manager|Uro|1.0.1 vscodeintellicode|Vis|1.3.1 html-css-class-completion|Zig|1.20.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscorecescf:30445987 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyonecf:30548226 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonnoceb:30805159 asynctok:30898717 pythonregdiag2:30936856 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelc:31048052 dsvsc021:30996838 724cj586:31013169 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 legacy_priority:31082724 ```
VSCodeTriageBot commented 1 week ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.90.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!