Skip to content

vscode: dev status-bar chip unreadable in light themes — statusBarItem.prominentForeground used without its (unsettable) background pair #1747

Closed

Description

@amrmelsayed

Symptom

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

devChipItem.color = new vscode.ThemeColor('statusBarItem.prominentForeground');

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.
  • If more prominence is wanted, the only theme-safe options inside the status bar API are the warning/error background PAIRS (likely too alarming per the vscode: Codev Dev surface — bottom-panel tab with title-bar Stop/Restart, paired with always-visible status-bar chip #921 call) or text/icon treatments (icon choice, $(sync~spin)-class affordances) that carry no color assumptions.
  • 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.

Activity

  1. added
    area/vscode
    on Sep 28, 2026
  2. amrmelsayed commented on Sep 28, 2026

    @amrmelsayed
    CollaboratorAuthor

    On it! Working on a fix now.

  3. added 2 commits that reference this issue on Sep 28, 2026
    fc3479a
    a8e4194
  4. added 2 commits that reference this issue on Oct 4, 2026
    731e7a3
    daaad0f
  5. amrmelsayed commented on Oct 4, 2026

    @amrmelsayed
    CollaboratorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/vscode

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions