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:
- Set theme: "dark" in ~/.claude/settings.json
- Set the Visual Studio 2022 IDE theme to Blue
(a light theme)
- Close and reopen the Claude Code panel
(restarts the agent)
- 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.
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:
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:
(a light theme)
(restarts the agent)
the theme: "dark" setting
Additional investigation:
overwritten by the extension — the file retains
theme: "dark" after the theme change occurs.
theme at startup and passing it to the Claude
Code process, bypassing the settings.json
setting entirely.
under Tools → Options in Visual Studio 2022 to
control this behavior.
agent to apply the new terminal colors?" —
however, the issue occurs even without
confirming this dialog, simply by reopening the
panel.