VSCodeVim / VSCodeVim/Vim

Status bar color does not remain scoped to the active VS Code window

Open
#10,073 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

Title
Status bar color does not remain scoped to the active VS Code window

Describe the bug
When Vim: Status Bar Color Control is enabled and multiple VS Code windows are open, the Vim mode itself is reported correctly, but the status bar color is not updated independently for each window.

Changing the Vim mode in one VS Code window can also change the status bar color in another window. As a result, a window may show the correct mode text but retain a color associated with the mode of a different window.

To Reproduce

  1. Enable Vim: Status Bar Color Control.
  2. Open two separate VS Code windows.
  3. Open a file in both windows.
  4. Enter Insert mode in the first window.
  5. Switch to the second window and enter Normal mode.
  6. Switch between the two windows.
  7. Observe that the mode is correct, but the status bar color may reflect the mode from the other window.

Expected behavior
Each VS Code window should maintain its own status bar color based on the Vim mode active in that window. Changing modes in one window should not affect the status bar color of another window.

Screenshots
The attached screenshot shows that Vim: Status Bar Color Control is enabled.

Additional context
The issue only affects the status bar color. Vim mode detection and the displayed mode are correct.

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 locating the implementation for Vim: Status Bar Color Control and the status-bar updates triggered by Vim mode changes. Reproduce the behavior with two VS Code windows, then verify that changing modes in one window leaves the other window's status bar color unchanged while its mode text remains correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
desktop, developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.