VSCodeVim / VSCodeVim/Vim

Alt-tab when "checkout to" popup is opened stop handling keys properly

Open
#6,712 0 comments 0 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
If I use alt-tab to switch window while "checkout to" popup is opened, vscode vim stop reacting for keys when I get back

To Reproduce
Steps to reproduce the behavior:

  1. Open vscode in a folder with git repo
  2. Open command pallete
  3. Select 'Checkout to'
  4. Press alt-tab (or option-tab on macos)
  5. When you get back, no keys work in the editor

Expected behavior
Should still react for keys

Screenshots

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.20.3
  • VSCode version: 1.56.2
  • OS: Windows 10 Build 19042, WSL 2

Additional context
It doesn't matter how "checkout to" window is opened (via command palette/native shorcut/vim shorcut)

My take is that vscode closes the "checkout to" window but vscodevim still thinks it's open

P.S. It took me awhile to track this down and understand how to reproduce it 😅

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

Reproduce the issue by opening VS Code's Command Palette, selecting “Checkout to,” switching windows with Alt-Tab or Option-Tab, and returning to the editor. Trace how the VSCodeVim extension handles the popup's focus or lifecycle, then verify that editor keys work again after the popup is closed.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.