From eb0dc4c561ef1eba641b421ee57d0df4f2b38e68 Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Wed, 17 Jul 2019 18:30:54 -0700 Subject: [PATCH] Use a single instance of webviewIconsManager --- .../workbench/contrib/webview/browser/webviewEditorInput.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/webview/browser/webviewEditorInput.ts b/src/vs/workbench/contrib/webview/browser/webviewEditorInput.ts index a5a176a42b9..dd83d24f297 100644 --- a/src/vs/workbench/contrib/webview/browser/webviewEditorInput.ts +++ b/src/vs/workbench/contrib/webview/browser/webviewEditorInput.ts @@ -53,7 +53,8 @@ export class WebviewEditorInput extends EditorInput { public static readonly typeId = 'workbench.editors.webviewInput'; - private readonly iconsManager = new WebviewIconsManager(); + private static readonly iconsManager = new WebviewIconsManager(); + private _name: string; private _iconPath?: { light: URI, dark: URI }; private _group?: GroupIdentifier; @@ -111,7 +112,7 @@ export class WebviewEditorInput extends EditorInput { public set iconPath(value: { light: URI, dark: URI } | undefined) { this._iconPath = value; - this.iconsManager.setIcons(this.id, value); + WebviewEditorInput.iconsManager.setIcons(this.id, value); } public matches(other: IEditorInput): boolean { -- GitLab