Slow search in large files when either hlsearch or incsearch is enabled
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
With both hlsearch noincsearch and nohlsearch incsearch VSCodeVim highlights matches in the entire file after starting a search with /. In large files, this leads to a hang after the first letter is typed since there are many matches. The built-in VS Code text search seems to stop after a predefined number of matches and does not highlight further. With nohlsearch noincsearch there are no highlights and no hang.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing / searches in a large file with each hlsearch and incsearch combination, then trace the search handling and match-highlighting paths. Compare the behavior with VS Code text search, especially its match limit. Done means typing the first search character no longer hangs while the intended highlights remain available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100