microsoft / vscode

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

[linked editing] Linked editing stops syncing on quick edits #180156

Open mjbvz opened 1 year ago

mjbvz commented 1 year ago

Type: Bug

  1. "editor.linkedEditing": true
  2. In an html file, start linked editing on some tags
  3. Rapidly type a few characters

Bug Sometimes linked editing stops working

VS Code version: Code - OSS Dev 1.78.0 (Commit unknown, Date unknown) OS version: Darwin x64 22.4.0 Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
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)|3, 4, 3| |Memory (System)|32.00GB (0.01GB free)| |Process Argv|.| |Screen Reader|no| |VM|0%|
mjbvz commented 1 year ago

This happens for linked editing in JS/TS too. I think it's a problem with linked editing in core

vscodenpa commented 1 year 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.77.3. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

davetapley commented 1 year ago

Still seeing this in 1.81.1, seems pretty inconsistent 🤔

I have vim mode in, if that makes a difference.

https://github.com/microsoft/vscode/assets/48232/020beb12-4c10-4f29-a679-2230ab570e62

Version: 1.81.1
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:20:33.924Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin x64 21.6.0
zardoy commented 11 months ago

Sometimes also tsserver hangs with the response, so I made this workaround to speed up it in tsserver and it fixed slow jsx linked editing in my case. You should fix so vscode DOES NOT re-request linked editing after each keystroke ASAP!

Number-3434 commented 3 months ago

I'm still experiencing this issue whilst editing JSX / TSX on VSCode 1.91.1.

P.S. I have reproduced this on the "Auto Rename Tag" extension as well.

yamatsum commented 3 months ago

This problem may be the same https://github.com/microsoft/vscode/issues/184829#issuecomment-2092498009

angelhdzmultimedia commented 2 months ago

Still happening on VSCode 1.92.2.