From 1a3c7f88324df9b03badf2f1ad6837b28e31c543 Mon Sep 17 00:00:00 2001 From: Martin Aeschlimann Date: Wed, 25 Mar 2020 12:04:18 +0100 Subject: [PATCH] inspect tokens: recompute when theme changes --- .../browser/inspectEditorTokens/inspectEditorTokens.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.ts b/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.ts index 6bb934a241d..a9a83b2340a 100644 --- a/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.ts +++ b/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.ts @@ -70,6 +70,12 @@ class InspectEditorTokensController extends Disposable implements IEditorContrib this._register(this._editor.onDidChangeModel((e) => this.stop())); this._register(this._editor.onDidChangeModelLanguage((e) => this.stop())); this._register(this._editor.onKeyUp((e) => e.keyCode === KeyCode.Escape && this.stop())); + this._register(this._themeService.onDidColorThemeChange(_ => { + if (this._widget) { + this.stop(); + this.launch(); + } + })); } public dispose(): void { -- GitLab