VSCodeVim / VSCodeVim/Vim

Cursor freeze in normal mode in large codebase

Open
#9,169 0 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Type: Performance Issue

In large codebase, with thousands of protobuff generated files and other project files, move with simple h,j,k,l or navigating with ctrl+o, ctrl+i, ctrl+] is freezing. I do moves, wait 3-7 seconds, cursor teleports to desired place, and after that moves goes as usual.

Extension version: 1.27.3
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:07:46.768Z)
OS version: Darwin arm64 23.5.0
Modes:

System Info
Item Value
CPUs Apple M1 Pro (10 x 2400)
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
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 6, 5, 5
Memory (System) 32.00GB (10.38GB free)
Process Argv --log warn --crash-reporter-id dc11aaf7-5e37-4fb1-9eb6-c7dbf6581c9c
Screen Reader no
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
   18	   229	   725	code main
    3	    66	   728	   gpu-process
    3	    33	   729	   utility-network-service
   16	  1212	   731	window [1] (send_to_balance_now_by_list.go — revision)
    0	   164	   833	shared-process
    0	     0	 77938	     /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    66	   994	ptyHost
    0	     0	  3800	     /bin/zsh -il
    0	    98	 77730	window [2] (Issue Reporter)
    0	    66	 77732	fileWatcher [1]
   12	   524	 77733	extensionHost [1]
    1	   426	 77743	     /Users/ariel/go/bin/gopls -mode=stdio
    1	   229	 77809	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/ariel/.vscode/extensions/streetsidesoftware.code-spell-checker-3.0.1/packages/_server/dist/main.cjs --node-ipc --clientProcessId=77733
    0	     0	 77821	     /Users/ariel/.vscode/extensions/continue.continue-0.9.188-darwin-arm64/out/node_modules/@esbuild/darwin-arm64/bin/esbuild --service=0.17.19 --ping
    0	    66	 77827	     /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=77733
Workspace Info
|  Window (send_to_balance_now_by_list.go — revision)
|    Folder (revision): 467 files
|      File types: go(328) yml(17) proto(13) json(2) gitignore(1) md(1) mod(1)
|                  sum(1) sh(1)
|      Conf files: dockerfile(3) devcontainer.json(1) settings.json(1)
|                  makefile(1);
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialogc:30910334
pythonnoceb:30805159
asynctok:30898717
pythonregdiag2:30936856
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
accentitlementst:30995554
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
945dj816:31013170
pythoncenvpt:31062603
a69g1124:31058053
dvdeprecation:31068756
dwnewjupytercf:31046870
impr_priority:31102340
nativerepl2:31104044
refactort:31101459
ccpltc:31103427
pythonrstrctxtcf:31103194
hdi1a554:31097393

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reproducing the delay in a large workspace with the reported VS Code Vim extension and project conditions, then trace the command path for h, j, k, l and the listed navigation commands. Done means the reported cursor freezes are eliminated or the responsible bottleneck is isolated with supporting evidence.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.