diff --git a/src/vs/workbench/contrib/terminal/browser/terminalService.ts b/src/vs/workbench/contrib/terminal/browser/terminalService.ts index 02096f77cc690..9bef2c44b6d4b 100644 --- a/src/vs/workbench/contrib/terminal/browser/terminalService.ts +++ b/src/vs/workbench/contrib/terminal/browser/terminalService.ts @@ -1104,7 +1104,12 @@ class TerminalEditorStyle extends Themable { this._register(this._terminalService.onDidChangeInstanceIcon(() => this.updateStyles())); this._register(this._terminalService.onDidChangeInstanceColor(() => this.updateStyles())); this._register(this._terminalService.onDidCreateInstance(() => this.updateStyles())); - this._register(this._editorService.onDidActiveEditorChange(e => { + this._register(this._editorService.onDidActiveEditorChange(() => { + if (this._editorService.activeEditor instanceof TerminalEditorInput) { + this.updateStyles(); + } + })); + this._register(this._editorService.onDidCloseEditor(() => { if (this._editorService.activeEditor instanceof TerminalEditorInput) { this.updateStyles(); }