VSCodeVim / VSCodeVim/Vim

Navigation unresponsive on large files

Open
#6,589 13 comments 12 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

Describe the bug
Hi, I noticed that when I open a large file (I have a JSON lines file that contains over 650k lines and is close to 900MB in size) the extension makes VSCode unresponsive to navigation and editing. I cannot move caret with h/j/k/l or arrow keys and I cannot toggle insert mode on. The problem goes away when I disable the extension.

I checked the open issues but I saw only issues related to slowness when opening large files but even larger files makes the extension unusable totally. Is this a known issue and is there a workaround?

To Reproduce
Steps to reproduce the behavior:

  1. Open a large file
  2. Try to navigate or switch to insert mode by pressing i
  3. VSCode/vim-extension seems to be unresponsive

Expected behavior
Navigation and editing the file would work.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.20.2
  • VSCode version: 1.55.2
  • OS: macOS Big Sur 11.3.1

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 issue in VS Code with a roughly 650k-line, 900MB JSON lines file using the Vim extension, then test caret movement, arrow keys, and insert mode. Compare behavior with the extension disabled and verify that navigation and editing remain responsive when the extension is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.