microsoft / vscode

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

Changing JSX tag changes random staff instead of the tag #209562

Closed mikitaBahamazau closed 5 months ago

mikitaBahamazau commented 6 months ago

Type: Bug

Every time I try to edit the existing JSX tag the VS code changes some random sibling tabs:

<div><span></span></div> -> trying to rename div to something else results in:
<something><something></span></s>

Same happens when trying to move the code above or below with Alt

https://github.com/microsoft/vscode/assets/109739915/2f9bec8b-c568-466c-9257-727d2c3601b4

This does not happen with exact same extensions and parameters on my other laptop (macbook)

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

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)| |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.85GB (44.63GB free)| |Process Argv| |Screen Reader|no| |VM|0%|
Extensions (50) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 vscode-css-formatter|aes|1.0.2 vscode-eslint|dba|2.4.4 gitlens|eam|14.9.0 vscode-html-css|ecm|2.0.9 EditorConfig|Edi|0.16.4 prettier-vscode|esb|10.4.0 vscode-firefox-debug|fir|2.9.10 auto-rename-tag|for|0.1.10 code-runner|for|0.12.1 codespaces|Git|1.16.18 remotehub|Git|0.62.0 vscode-github-actions|git|0.26.2 find-unused-exports|iul|2.1.2 jbockle-format-files|jbo|3.4.0 inline-parameters|lia|0.2.1 i18n-ally|lok|2.12.0 vscode-docker|ms-|1.29.0 csharp|ms-|2.23.15 vscode-dotnet-runtime|ms-|2.0.3 playwright|ms-|1.0.22 debugpy|ms-|2024.2.0 isort|ms-|2023.10.1 python|ms-|2024.2.1 vscode-pylance|ms-|2024.4.1 jupyter|ms-|2024.2.0 jupyter-keymap|ms-|1.1.2 jupyter-renderers|ms-|1.0.17 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.348.0 remote-ssh|ms-|0.109.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3 remote-repositories|ms-|0.40.0 vsliveshare|ms-|1.0.5918 gitpatch|par|0.2.1 java|red|1.29.0 LiveServer|rit|5.7.9 vs-code-prettier-eslint|rve|6.0.0 code-spell-checker|str|3.0.1 sass-indented|syl|1.8.29 tabnine-vscode|Tab|3.84.0 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.3.1 vscode-java-debug|vsc|0.57.0 vscode-java-pack|vsc|0.25.15 vscode-java-test|vsc|0.40.1 vscode-import-cost|wix|3.3.0 pretty-ts-errors|Yoa|0.5.3
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 d34g3935:30971562 fegfb526:30981948 bg6jg535:30979843 ccp2r3:30993541 dsvsc020:30976470 pythonait:31006305 7ghi1836:30988842 dsvsc021:30996838 gd77d436:30999572 ```
vscodenpa commented 6 months 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.88.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

mjbvz commented 6 months ago

Does this reproduce with all extensions disabled?

mikitaBahamazau commented 6 months ago

@mjbvz I've tried to reinstall the VS code. Still the same without extensions. The problem is not present on another laptop (mac) with all the same extensions

mjbvz commented 6 months ago

Thanks for checking. Can you also try in the latest VS Code insiders build to see if it's fixed there?

vscodenpa commented 5 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!