You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
vscode: dev status-bar chip unreadable in light themes — statusBarItem.prominentForeground used without its (unsettable) background pair #1747
In light themes the dev status-bar chip ("$(server-process) Dev: ") is nearly unreadable: pale, washed-out text on the light status bar (owner screenshot, 2026-09-29, chip "Dev: pir-5621"). The rest of the status bar (builders/blocked/waiting segments) renders normally. Dark themes look fine, which is how it shipped unnoticed.
Root cause
apps/vscode/src/extension.ts (updateDevChip, ~line 610): the chip sets
statusBarItem.prominentForeground is one half of a PAIRED token: it is designed to sit on statusBarItem.prominentBackground (a highlighted background), where it is typically a light/white foreground. The extension cannot apply that background: as the adjacent comment itself records, StatusBarItem.backgroundColor only honors the error/warning backgrounds (VS Code API constraint). So the chip renders the pair's light foreground on the DEFAULT status bar background: near-white on light in light themes. The half-token can never be paired, so it must not be used at all.
(The intent was the #921 design call: "prominent, not alarming". The mechanism chosen cannot deliver it safely across themes.)
Fix shape (lane decides the final look)
Minimum: drop the color override entirely; the codicon plus the "Dev:" label already distinguish the chip, and the default foreground is theme-correct everywhere.
Whatever is chosen: verify in BOTH light and dark themes per the testing guide (UI change; Playwright does not drive the native status bar, manual verification notes acceptable), and grep the extension for other lone uses of paired half-tokens (prominentForeground, warningForeground/errorForeground set without their backgrounds at extension.ts ~275/279 deserve the same audit).
Evidence
Owner screenshot on light theme: "Dev: pir-5621" chip washed out next to fully legible neighboring status bar segments; tooltip ("Codev dev running for pir-5621...") renders normally, confirming it is the item foreground, not the hover layer.
Shipped. PR #1750 merged to main 2026-10-04T22:53:57Z as merge commit 731e7a3 (admin merge by the vscode architect seat on the owner's redirect, after the owner's pr-gate word at 22:49Z).
What landed: the colour override is dropped at all three status-bar sites in extension.ts: the dev chip (statusBarItem.prominentForeground) and the Reconnecting (warningForeground) and Offline (errorForeground) states. All three tokens pair with a background the extension API cannot set and resolve to white in light themes. Verified in the development host: 2026 Light bar #FAFAFD rendered all three near-white pre-fix and the theme foreground post-fix; Light Modern and Dark Modern legible post-fix. A source-scan test keeps the lone foreground tokens out of extension.ts. CMAP three approvals; CI 7/7 on the merged head.
Changelog: apps/vscode/CHANGELOG.md Unreleased Fixes and docs/releases/UNRELEASED.md Polish updated on docs/vscode-changelog.
Activity
amrmelsayed commentedon Sep 28, 2026
On it! Working on a fix now.
Fix #1747: drop lone paired status-bar foreground tokens so chips sta…
[Bugfix #1747] builder thread
Merge pull request #1750 from cluesmith/builder/bugfix-1747
docs(changelog): #1747 status-bar text readable in light themes (PR #…
amrmelsayed commentedon Oct 4, 2026
Shipped. PR #1750 merged to main 2026-10-04T22:53:57Z as merge commit 731e7a3 (admin merge by the vscode architect seat on the owner's redirect, after the owner's pr-gate word at 22:49Z).
What landed: the colour override is dropped at all three status-bar sites in
extension.ts: the dev chip (statusBarItem.prominentForeground) and the Reconnecting (warningForeground) and Offline (errorForeground) states. All three tokens pair with a background the extension API cannot set and resolve to white in light themes. Verified in the development host: 2026 Light bar #FAFAFD rendered all three near-white pre-fix and the theme foreground post-fix; Light Modern and Dark Modern legible post-fix. A source-scan test keeps the lone foreground tokens out ofextension.ts. CMAP three approvals; CI 7/7 on the merged head.Changelog:
apps/vscode/CHANGELOG.mdUnreleased Fixes anddocs/releases/UNRELEASED.mdPolish updated ondocs/vscode-changelog.