VSCodeVim / VSCodeVim/Vim

Super Slow Typing in Insert Mode

Open
#7,546 4 comments 16 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Issue Type: Performance Issue

Lately if I'm in insert mode and trying to type in file, with ~500+ lines of code, it is extreamly slow at recognizing the key presses. I find it unbearable and practically impossible to get anything done.

Extension version: 1.22.2
VS Code version: Code 1.65.1 (8908a9ca0f221f36507231afb39d2d8d1e182702, 2022-03-08T02:09:03.269Z)
OS version: Linux x64 5.15.23-76051523-generic snap
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 1245)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 5, 6, 6
Memory (System) 62.52GB (24.21GB free)
Process Argv --no-sandbox --force-user-env --unity-launch --crash-reporter-id c39da12a-ae4c-40d0-a7b2-c624a7009311
Screen Reader no
VM 0%
DESKTOP_SESSION pop
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP pop
XDG_SESSION_TYPE x11
Process Info
CPU %	Mem MB	   PID	Process
    1	   128	1062547	code main
    0	     0	1062549	   zygote
    1	   128	1062610	     gpu-process
    0	     0	1062550	   zygote
    0	    64	1240896	     issue-reporter
    0	    64	1062619	   utility-network-service
    4	   128	1063065	   shared-process
    0	    64	1063120	     ptyHost
    0	     0	1116332	       /usr/bin/zsh
    0	     0	1241113	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	1241114	       /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
   17	   256	1241014	   extensionHost
Workspace Info
|  Window (TellerV2.sol - Untitled (Workspace) - Visual Studio Code)
|    Folder (hardhat-ts): 494 files
|      File types: json(193) ts(125) sol(34) chainId(4)
|                  latestDeploymentBlock(4) forkingNetwork(2) env(1) template(1)
|                  eslintrc(1) prettierrc(1)
|      Conf files: package.json(1) tsconfig.json(1)
|    Folder (v2-pilot-contracts): 4192 files
|      File types: zip(3365) json(232) ts(167) png(43) sol(34) tsx(34) svg(17)
|                  js(10) css(7) md(6)
|      Conf files: package.json(5) github-actions(3) settings.json(2)
|                  tsconfig.json(2) dockerfile(2);
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vsclayoutctrt:30448491
dsvsc008:30440022
pythonvsnew555:30450167
vsbas813:30436447
vscscmwlcmc:30438804
vscgsvid1:30447480
helix:30440343
pynewfile477cf:30450039

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

Reproduce the typing lag in VS Code with VSCodeVim 1.22.2 on Linux, using a file of roughly 500 or more lines and the reported workspace configuration. Compare behavior in insert mode and inspect the extension's typing path and extension-host activity. Done means the lag is isolated to a reproducible cause and typing responsiveness is restored or the required diagnostic evidence is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
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.