Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[linked editing] JSX tags: does not work when the whole tag is changed #185279

Open
snehilshah opened this issue Jun 15, 2023 · 3 comments · May be fixed by #242993
Open

[linked editing] JSX tags: does not work when the whole tag is changed #185279

snehilshah opened this issue Jun 15, 2023 · 3 comments · May be fixed by #242993
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-synced-region Issues related to synced region functionality in editor
Milestone

Comments

@snehilshah
Copy link

snehilshah commented Jun 15, 2023

Type: Bug

  1. Started editing the linked tag
    eg: <div> ....</div>

  2. Remove the complete tag
    eg: <>....</div>

  3. (Bug) Changing the original tag now does not affect the matching tag.
    eg: <section>....</> <- did not change`

VS Code version: Code 1.79.2 (695af09, 2023-06-14T08:57:04.379Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12500H (16 x 3110)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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.63GB (8.48GB free)
Process Argv --folder-uri file:///d%3A/Projects/agenda-builder
Screen Reader no
VM 0%
Extensions (21)
Extension Author (truncated) Version
TabOut alb 0.2.2
easy-npm ani 0.3.0
tailwind-docs aus 2.0.0
vscode-tailwindcss bra 0.9.11
vscode-markdownlint Dav 0.51.0
es7-react-js-snippets dsz 4.4.3
gitlens eam 14.0.0
prettier-vscode esb 9.13.0
code-runner for 0.12.0
copilot Git 1.89.156
hungry-delete jas 1.7.0
symbols mig 0.0.12
vsliveshare ms- 1.0.5873
cssvar pho 2.6.2
vscode-thunder-client ran 2.7.7
reflow Ref 0.0.15
LiveServer rit 5.7.9
svg-preview Sim 2.8.3
errorlens use 3.11.1
vscode-conventional-commits viv 1.25.0
vscode-wakatime Wak 24.0.14

(2 theme extensions excluded)

@aeschli aeschli changed the title Linked editing for JSX tags: does not work when the whole tag is changed [linked editing] JSX tags: does not work when the whole tag is changed Aug 18, 2023
@aeschli aeschli added editor-synced-region Issues related to synced region functionality in editor bug Issue identified by VS Code Team member as probable bug labels Aug 18, 2023
@aeschli aeschli added this to the Backlog milestone Aug 18, 2023
@lani-po
Copy link

lani-po commented Feb 16, 2024

Any updates or workarounds for this? This always happens to me and it's quite a pain.

@snehilshah
Copy link
Author

snehilshah commented Aug 20, 2024

Since it has been over a YEAR, for anyone else who is facing this issue:

Use the extension Auto Rename Tag. It has the same functionality and does not cause this bug. Disable this VSCode setting with "editor.linkedEditing": false.

@xak2000
Copy link

xak2000 commented Jan 24, 2025

Auto Rename Tag helps, but only if you are editing the opening tag (that you usually do, so it still worth it).

But if you are editing the closing tag, the same bug is present in this extension.

@alexvoedi alexvoedi linked a pull request Mar 9, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug editor-synced-region Issues related to synced region functionality in editor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants