VSCodeVim / VSCodeVim/Vim

VIM extension sometimes forces an editor restart upon saving changes

Open
#3,502 2 comments 6 reactions 0 assignees View on GitHub

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
When exiting insert mode and saving (:w) quickly, the editor will suddenly change themes and prompt me to restart the editor for the changes to take effect.

To Reproduce
I can't seem to reproduce on demand -- it sort of just happens after making changes to a file.

  1. Make a change to a file via insert mode.
  2. Leave insert mode and rapidly save the file.

Expected behavior
File saves successfully and nothing further of note happens.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.0.8
  • VSCode version: 1.31.1
  • OS: macOS 10.13.6

Additional context
I wonder if the vscode-vim plugin has issues with code autoformatters (like Prettier) that trigger upon save.

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

Start by reproducing the reported sequence: edit in insert mode, exit insert mode, and rapidly save with :w on the listed VSCode and macOS versions. Investigate the interaction between saving, theme changes, restart prompts, and save-triggered formatters such as Prettier; done means the file saves without an unexpected theme change or restart prompt.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.