Skip to content

fix: refresh status bar when a window regains focus (#55) - #69

Merged
Carl723000 merged 1 commit into
ClaudeCodeUsage:mainfrom
Carl723000:fix/multiwindow-statusbar
Jul 6, 2026
Merged

Carl723000 merged 1 commit into
ClaudeCodeUsage:mainfrom
Carl723000:fix/multiwindow-statusbar

Conversation

@Carl723000

Copy link
Copy Markdown
Collaborator

Closes #55.

Problem: with several VS Code windows open, only the window you last worked in keeps its status bar current — the others lag or stop updating. Each window is a separate extension host, and Electron throttles timers and fs.watch delivery in unfocused/hidden windows, so background windows go stale and never catch up.

Fix: listen for onDidChangeWindowState; when a window regains focus, force an immediate refresh and re-arm the auto-refresh timer + file watcher, so it catches up at once. Ships in 2.2.0.

Each VS Code window is a separate extension host, and Electron throttles both
timers and fs.watch delivery in unfocused/hidden windows — so with several
windows open, only the one you last worked in keeps its status bar current;
the others lag or stop updating. Now, when a window regains focus, we force an
immediate refresh and re-arm the timer + file watcher, so a background window
catches up at once instead of after the next (throttled) tick — or never.
@Carl723000
Carl723000 requested a review from jack21 as a code owner July 6, 2026 16:32
@github-actions github-actions Bot added the fix Patch — bug fix label Jul 6, 2026
@Carl723000
Carl723000 merged commit 0b4b750 into ClaudeCodeUsage:main Jul 6, 2026
3 checks passed
@Carl723000
Carl723000 deleted the fix/multiwindow-statusbar branch August 24, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Patch — bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Udapting status bar works in one of many vscode windows

1 participant