Skip to content

Bug: Saving in Git diff editor switches to normal editor #9800

@kyota-fujikura

Description

@kyota-fujikura

Describe the bug
When editing on the Git diff editor (the built-in compare view) and saving the file by :w command, VS Code unexpectedly switches focus to a normal text editor of the same file.
This starts with VSCodeVim 1.31.0 and does not happen with VSCodeVim 1.30.1. Disabling VSCodeVim stops the issue.

To Reproduce
Steps to reproduce the behavior:

  1. Open a repository with changes and open a diff (via Source Control → click a file → Open Changes).
  2. Focus the right side of the diff editor and make any edit.
  3. Save using :w
  4. Focus jumps to a normal editor view of the file

Expected behavior
Stay in the diff editor on :w.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.31.0
  • VSCode version: 1.105.1
  • OS: Mac OS X 14.7.1

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions