Skip to content

Sticky Scroll slows down response to arrow keys motion #268172

@axvutt

Description

@axvutt

Type: Performance Issue

After a while (15 min? 30 min?) working on a Python file ~200 lines long, the caret motions using arrow keys get slower and slower until it becomes too uncomfortable to work with, in particular while pressing and holding those keys.

I use Python Environments extension (includes "Pylance", "Python Debugger" and "Python" language support) and vscodevim Vim emulator.
However, the issue still remains when I disable all the extensions, close the "big" file and reopen it.

Closing and reopening VS Code solves the problem temporarily until it comes back.
Disabling and re-enabling "Sticky Scroll" (View>Appearance>~) also solves it, temporarily!

Please find enclosed the performance profile trace, which seem to show that time-consuming tasks come from function calls related to the Sticky Scroll widget.


VS Code version: Code 1.104.1 (0f0d87f, 2025-09-17T23:36:24.973Z)
OS version: Windows_NT x64 10.0.22621
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz (4 x 2712)
GPU Status 2d_canvas: enabled
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
trees_in_viz: 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) 15.86GB (7.31GB free)
Process Argv --crash-reporter-id 41923007-e6ec-40c7-9e42-720b1f8f63df
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   159	 14036	code
    1	   349	  1116	window [1] (plot.py - plots - Visual Studio Code)
    0	    42	  1636	   utility-process
    0	   108	  2776	   utility-process
    0	    45	  2900	   utility-network-service
    0	   799	  4988	   window
    0	    29	 12376	   crashpad-handler
    0	   120	 12896	shared-process
    0	    87	 13296	file-watcher [1]
    1	   225	 13860	   gpu-process
    0	   204	 15132	extension-host [1]
    0	   599	  1688	     electron-nodejs (bundle.js )
    0	     6	 14756	     c:\Users\voutea\.vscode\extensions\ms-python.python-2025.14.0-win32-x64\python-env-tools\bin\pet.exe server
    0	     6	 12424	       C:\windows\system32\conhost.exe 0x4
    0	    95	 16144	pty-host
    0	     6	  2860	     conpty-agent
    0	    58	  8648	     C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\voutea\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1\" } catch {}"
    0	     6	  9272	     conpty-agent
    0	    56	 12696	     C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\voutea\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1\" } catch {}"
Workspace Info
|  Window (plot.py - plots - Visual Studio Code)
|    Folder (plots): 2 files
|      File types: py(2)
|      Conf files:;
Extensions: none
A/B Experiments
vsliv368:30146709
vswsl492cf:30256860
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
aj953862:31281341
nesew2to5:31336538
cs4_fixed:31388788
nes-set-on:31351930
onetestforazureexpcf:31335614
6abeh943:31336334
envsdeactivate2:31353495
0cj2b977:31352657
gendocstringf:31387973
asdad:31365766
cloudbuttont:31379625
todos-0:31390406
multireplacestringcontrol:31387919
control_gpt5applypatchexclusively:31387916
3efgi100_wstrepl:31382709
metis-embeddings:31388492
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
gemagent1cf:31387341

Trace-20250924T155446.zip

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugeditor-sticky-scrollperf

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions