Repository: vscode
Issue: problems with Undo/Redo in jsx/tsx file after pasting tag name
Labels: bug,help wanted,typescript,javascript


Type: <b>Bug</b>

in any jsx/tsx file, make a component function (that returns React.JSX.Elemen)


VS Code version: Code 1.94.1 (e10f2369d0d9614a452462f2e01cdc4aa9486296, 2024-10-05T05:44:32.189Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|13th Gen Intel(R) Core(TM) i9-13900HX (32 x 2419)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|31.75GB (16.61GB free)|
|Process Argv|--crash-reporter-id 7e614ff1-e8e4-4ae8-8a5a-1e013377f568|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (54)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-css-formatter|aes|1.0.2
atlascode|atl|3.0.10
vscode-django|bat|1.15.0
vscode-tailwindcss|bra|0.12.11
webvalidator|Cel|1.3.1
githistory|don|0.6.20
pug-formatter|duc|0.6.0
gitlens|eam|15.6.0
vscode-html-css|ecm|2.0.10
EditorConfig|Edi|0.16.4
prettier-vscode|esb|11.0.0
figma-vscode-extension|fig|0.3.5
auto-rename-tag|for|0.1.10
code-python-isort|fre|0.0.3
copilot|Git|1.236.0
copilot-chat|Git|0.21.1
live-sass|gle|6.1.2
vscode-test-explorer|hbe|2.22.1
vscode-htmlhint|HTM|1.0.5
rest-client|hum|0.25.1
svg|joc|1.5.4
vscode-python-test-adapter|lit|0.8.2
code-beautifier|mic|2.3.3
vscode-scss|mrm|0.10.0
vscode-docker|ms-|1.29.3
black-formatter|ms-|2024.2.0
debugpy|ms-|2024.10.0
isort|ms-|2023.10.1
python|ms-|2024.16.0
vscode-pylance|ms-|2024.10.1
jupyter|ms-|2024.9.1
jupyter-keymap|ms-|1.1.2
jupyter-renderers|ms-|1.0.19
vscode-jupyter-cell-tags|ms-|0.1.9
vscode-jupyter-slideshow|ms-|0.1.6
remote-containers|ms-|0.388.0
remote-wsl|ms-|0.88.4
test-adapter-converter|ms-|0.2.0
html-validator|Nar|2.0.2
style-sorter|Nat|0.1.3
gulptasks|nic|1.3.1
docker-compose|p1c|0.5.1
vscode-yaml|red|1.15.0
LiveServer|rit|5.7.9
jinjahtml|sam|0.20.0
vscode-scss-formatter|sib|3.0.0
vscode-stylelint|sty|1.4.0
vscode-w3cvalidation|Umo|2.9.1
vscode-css-variables|vun|2.7.1
gitblame|wad|11.1.0
jinja|who|0.0.8
eno|Wsc|2.3.53
JavaScriptSnippets|xab|1.8.0
zeplin|Zep|2.2.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythongtdpath:30769146
pythonnoceb:30805159
asynctok:30898717
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
f3je6385:31013174
a69g1124:31058053
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
impr_priority:31102340
nativerepl1:31139838
refactort:31108082
pythonrstrctxt:31112756
flightc:31134773
wkspc-onlycs-t:31132770
wkspc-ranged-t:31151552
cf971741:31144450
autoexpandse:31146404
iacca2:31150323
showchatpanel:31153267
cc771715:31146322

```

</details>

<!-- generated by issue reporter -->