Merge pull request #298688 from microsoft/mrleemurray/experienced-jade-jackal

Fix background color handling in terminal editor
This commit is contained in:
Lee Murray
2026-03-02 11:43:59 +00:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -63,7 +63,7 @@
}
.monaco-workbench .terminal-editor .terminal-wrapper {
background-color: var(--vscode-terminal-background, var(--vscode-editorPane-background));
background-color: var(--vscode-editor-background);
}
.monaco-workbench .terminal-editor .terminal-wrapper,
.monaco-workbench .pane-body.integrated-terminal .terminal-wrapper {

View File

@@ -2812,13 +2812,13 @@ export class TerminalInstanceColorProvider implements IXtermColorProvider {
}
getBackgroundColor(theme: IColorTheme) {
if (this._target.object === TerminalLocation.Editor) {
return theme.getColor(editorBackground);
}
const terminalBackground = theme.getColor(TERMINAL_BACKGROUND_COLOR);
if (terminalBackground) {
return terminalBackground;
}
if (this._target.object === TerminalLocation.Editor) {
return theme.getColor(editorBackground);
}
const location = this._viewDescriptorService.getViewLocationById(TERMINAL_VIEW_ID)!;
if (location === ViewContainerLocation.Panel) {
return theme.getColor(PANEL_BACKGROUND);