My VS Code Vim becomes super slow after messing up the macros (maybe?)
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
I was trying some macros in multi-cursor mode today. It failed miserably and froze my VS Code. I killed my VS Code and did a restart, however, hitting Esc now takes 3-5 seconds to switch mode which makes the editor completely unusable and I don't know how to fix it...
To Reproduce
Steps to reproduce the behavior:
- I recorded a simple macro that uses vim-surrounds to add quotes to some word
- I used
change all occurrencecommand to enter the multi-cursor mode - I replay the macro using
'<,'> normal @a - The editor froze and is trying to do something I don't understand (my indentation switch from space to tabs somehow during the process)
- I killed the editor and restarted it
- Hitting
Escnow takes 3-5 seconds to switch mode - Restarting laptop and turn off all other extension doesn't solve the issue. Now everything is slow even on small file with only Vim extension activated
- Extension (VsCodeVim) version: 1.17.1
- VSCode version: 1.15.0-insider
- OS: Win10
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 the macro and multi-cursor sequence in VSCodeVim with the reported versions, then measure the delay when pressing Esc after restarting. Check whether the slowdown persists with only the Vim extension enabled. Done means the reported freeze or 3–5 second mode-switch delay is explained and a regression test or confirmed fix is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100