Skip to content

Theme not applying the Extension dark theme while IDE is in Blue Theme #47

@jalpizarTechnosoft

Description

@jalpizarTechnosoft

Title: Theme setting in settings.json is ignored on panel restart — extension forces IDE theme instead
Description:

When the Visual Studio 2022 IDE is set to a
light theme (e.g., Blue), the Claude Code panel
switches to light mode every time the agent is
restarted or the panel is reopened, even though
theme: "dark" is explicitly set in
~/.claude/settings.json.

Environment:

  • OS: Windows 10 Home (10.0.19045)
  • IDE: Visual Studio 2022
  • Claude Code CLI version: v2.1.132

Expected behavior:
The Claude Code console should always use the
theme defined in ~/.claude/settings.json,
regardless of the IDE's color theme.

Actual behavior:
On every agent restart, the extension detects
the IDE's current theme and applies it to the
console, overriding the settings.json value.

Suggested fix:
Respect the theme value defined in
~/.claude/settings.json and do not override it
based on the IDE theme. Optionally, a new
setting such as followIdeTheme: false could be
introduced to explicitly opt out of theme
synchronization.

Steps to reproduce:

  1. Set theme: "dark" in ~/.claude/settings.json
  2. Set the Visual Studio 2022 IDE theme to Blue
    (a light theme)
  3. Close and reopen the Claude Code panel
    (restarts the agent)
  4. The console switches to light mode, ignoring
    the theme: "dark" setting

Additional investigation:

  • Confirmed that settings.json is not being
    overwritten by the extension — the file retains
    theme: "dark" after the theme change occurs.
  • The extension is therefore reading the IDE
    theme at startup and passing it to the Claude
    Code process, bypassing the settings.json
    setting entirely.
  • There is no configuration option available
    under Tools → Options in Visual Studio 2022 to
    control this behavior.
  • A dialog appears asking "Restart the AI code
    agent to apply the new terminal colors?" —
    however, the issue occurs even without
    confirming this dialog, simply by reopening the
    panel.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions