vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Substantial delays and missed keystrokes while backspacing in a markdown file

Open KenSykes opened this issue 7 months ago • 3 comments

Type: Bug

The repro is inconsistent but occurs routinely throught the day. Best guess at steps:

  1. Be logged in to GitHub CoPilot.
  2. Open a markdown file. 2a. Perhaps, let it sit idle for a few minutes.
  3. Type some text.
  4. Attempt to erase text with backspace key.

Result: at times, hitting backspace is delayed for over a second and sometimes does not work at all. The CPU fan spins up and I end up fighting with multiple backspace keys to try to delete text. It makes editing markdown almost unusable.

VS Code version: Code 1.100.2 (848b80aeb52026648a8ff9f7c45a9b0a80641e2e, 2025-05-14T21:47:40.416Z) OS version: Windows_NT x64 10.0.26100 Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i9-12900K (24 x 3187)
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
webnn: disabled_off
Load (avg) undefined
Memory (System) 127.78GB (82.32GB free)
Process Argv --crash-reporter-id 48f609a6-e1a9-423b-a32a-917d41ef2d95
Screen Reader no
VM 0%
Extensions (57)
Extension Author (truncated) Version
rust-bundle 1Yi 1.0.0
midl3-language-server Ale 0.0.31
markdown-mermaid bie 1.28.0
vscode-dgmlviewer cod 2.2.7
doxdocgen csc 1.4.0
vulnerability-extension dev 1.2025.421002
docker doc 0.6.0
xml Dot 2.5.1
rust-syntax dus 0.6.1
gitlens eam 17.1.0
graphviz-preview EFa 1.7.5
syntax-highlighter evg 0.5.0
dependi fil 0.7.15
graphviz-markdown-preview gee 0.0.8
copilot Git 1.322.0
copilot-chat Git 0.27.1
todo-tree Gru 0.0.226
vscode-drawio hed 1.9.0
better-cpp-syntax jef 1.27.1
vscode-graphviz joa 0.0.9
rust-doc-viewer JSc 4.2.0
rust-flash-snippets lor 3.1.1
wavework Mic 1.2025.421001
csdevkit ms- 1.19.63
csharp ms- 2.76.27
vscode-dotnet-runtime ms- 2.3.3
vscodeintellicode-csharp ms- 2.2.3
debugpy ms- 2025.8.0
python ms- 2025.6.1
vscode-pylance ms- 2025.5.1
sarif-viewer MS- 3.4.5
jupyter ms- 2025.4.1
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.1.0
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.120.0
remote-ssh-edit ms- 0.87.0
remote-wsl ms- 0.99.0
vscode-remote-extensionpack ms- 0.26.0
cmake-tools ms- 1.20.53
cpptools ms- 1.25.3
cpptools-extension-pack ms- 1.3.1
hexeditor ms- 1.11.1
powershell ms- 2025.0.0
remote-explorer ms- 0.5.0
remote-server ms- 1.5.2
vsliveshare ms- 1.0.5948
rust-and-friends nyx 1.0.0
rust-targets Pol 1.2.1
rust-analyzer rus 0.3.2466
claude-dev sao 3.16.2
even-better-toml tam 0.21.2
vscode-lldb vad 1.11.4
rc-script wil 1.0.0
markdown-all-in-one yzh 3.6.3
rust-mod-generator Zha 1.0.10

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31309971
996jf627:31283433
pythonrdcb7cf:31303019
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolorcf:31309109
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004

KenSykes avatar May 21 '25 16:05 KenSykes

I have an ETW trace that captures the CPU spike in Code.exe. Can share with you if you want. Here is a screenshot of the CPU graph:

Image

KenSykes avatar May 21 '25 16:05 KenSykes

Does this reproduce in the latest VS Code insiders build with all extensions disabled?

mjbvz avatar May 21 '25 17:05 mjbvz

So far, it has not reproduced with Insiders build and extensions disabled. Will keep an eye out while finishing some edits on the document.

KenSykes avatar May 21 '25 18:05 KenSykes