`:w` stuck in writing file
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
In a pretty large workspace, after editing file for a while, use ":w" to save file will stuck for at least 5 seconds. Any command to vim will not be accepted. "hjkl" are not working but arrow keys are working. Can switch file tabs but cannot save them even with "ctrl+s"
To Reproduce
Steps to reproduce the behavior:
- Go to a file
- Enter insert mode to edit then exit
- Type ":w" to save file
- The vim is frozen for at least 5 seconds
Expected behavior
The file is saved immediately and vim is reponding to new commands.
Environment (please complete the following information):
Ubuntu 18.04
- Extension (VsCodeVim) version: 1.9.0
- VSCode version: 1.37.1
- OS: Ubuntu 18.04
Additional context
Don't know if it relates to the large workspace. If the file is bigger, it takes longer.
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 :w freeze in a large workspace using the reported VSCodeVim 1.9.0, VS Code 1.37.1, and Ubuntu 18.04 environment, then compare behavior with a smaller workspace or file. Trace the save-command and input handling entry points implicated by the report; done means saving responds immediately and hjkl and other commands work during and after the save.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100