Skip to content

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

@snehilshah

Description

@snehilshah

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)

Activity

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[/+] on Aug 18, 2023
added
editor-synced-regionIssues related to synced region functionality in editor
bugIssue identified by VS Code Team member as probable bug
on Aug 18, 2023
added this to the Backlog milestone on Aug 18, 2023
lani-po

lani-po commented on Feb 16, 2024

@lani-po

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

snehilshah

snehilshah commented on Aug 20, 2024

@snehilshah
Author

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

xak2000 commented on Jan 24, 2025

@xak2000

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.

linked a pull request that will close this issue on Mar 9, 2025
snehilshah

snehilshah commented on Mar 17, 2025

@snehilshah
Author

Hey @aeschli do we have any idea if this can be fixed?

alexvoedi

alexvoedi commented on Mar 23, 2025

@alexvoedi

Hey @aeschli do we have any idea if this can be fixed?

This might be a way to fix this: #242993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-synced-regionIssues related to synced region functionality in editor

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @xak2000@aeschli@alexvoedi@lani-po@snehilshah

    Issue actions

      [linked editing] JSX tags: does not work when the whole tag is changed · Issue #185279 · microsoft/vscode