VSCodeVim / VSCodeVim/Vim

Statusbar color change in one window affects ALL open vscode windows

Open
#9,414 6 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
vim.statusBarColorControl": true

When editing a file the status bar turns red for insert mode and green for normal mode. The problem is that if you have multiple vscode windows opened, all of the statusbars change color. So, I could be normal mode in two code windows. In the first window, I enter insert mode. Status bar turns red ->ON BOTH WINDOWS<

If I disable the extension in one of the windows, then change mode in the other window, even then, the window with disabled extension changes color.

To Reproduce
Steps to reproduce the behavior:

set vim.statusBarColorControl": true
cd proj1; code .
cd proj2; code .
in both projects, open any file
now, both statusbars are green (--NORMAL--)
In proj1, enter insert mode
proj1>statusbar goes red, as expected
proj2>statusbar goes red (even though it is still in NORMAL MODE and should have remained green
Expected behavior
Color of every statusbar in every project window change colors independently.

Screenshots
Screenshot from 2024-12-25 18-14-48
Screenshot from 2024-12-25 18-16-00

Environment (please complete the following information):

Extension (VsCodeVim) version: 1.2
VSCode version: 1.96.2
OS: Alma Linux 9

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 issue with vim.statusBarColorControl enabled in two VS Code windows, then trace the status-bar color handling and its window-specific state. Verify the fix by switching modes independently and disabling the extension in one window; each status bar should retain only its own state and color.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.