From b560f60f6bbc57ff71bf45e56ebf436882e61230 Mon Sep 17 00:00:00 2001 From: meganrogge Date: Wed, 12 Jan 2022 14:37:05 -0600 Subject: [PATCH] fix #140430 --- .../workbench/contrib/terminal/browser/terminalService.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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(); }