Skip to content

Fix background color handling in terminal editor#298688

Merged
mrleemurray merged 1 commit intomainfrom
mrleemurray/experienced-jade-jackal
Mar 2, 2026
Merged

Fix background color handling in terminal editor#298688
mrleemurray merged 1 commit intomainfrom
mrleemurray/experienced-jade-jackal

Conversation

@mrleemurray
Copy link
Contributor

Update the background color handling in the terminal editor to use the editor's background color instead of the terminal's background color. This change improves visual consistency within the editor environment.

Copilot AI review requested due to automatic review settings March 2, 2026 11:24
@mrleemurray mrleemurray enabled auto-merge March 2, 2026 11:24
@mrleemurray mrleemurray self-assigned this Mar 2, 2026
@vs-code-engineering vs-code-engineering bot added this to the March 2026 milestone Mar 2, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the background color handling for terminals opened in the editor tab context. The goal is visual consistency by using editor.background instead of terminal.background (or editorPane.background) when a terminal is in an editor.

Changes:

  • Reorders getBackgroundColor() in TerminalInstanceColorProvider to check TerminalLocation.Editor first, returning editorBackground before any TERMINAL_BACKGROUND_COLOR check.
  • Updates the .terminal-editor .terminal-wrapper CSS rule to use --vscode-editor-background directly, removing the previous var(--vscode-terminal-background, var(--vscode-editorPane-background)) pattern.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
terminalInstance.ts Moves editor-location check before TERMINAL_BACKGROUND_COLOR, so editor terminals always use editor.background
terminal.css Replaces fallback CSS variable chain with a direct --vscode-editor-background reference for .terminal-editor .terminal-wrapper

@mrleemurray mrleemurray merged commit 9eb1d23 into main Mar 2, 2026
24 checks passed
@mrleemurray mrleemurray deleted the mrleemurray/experienced-jade-jackal branch March 2, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants