diff --git a/src/vs/workbench/contrib/webview/browser/webviewEditorInput.ts b/src/vs/workbench/contrib/webview/browser/webviewEditorInput.ts index a5a176a42b98a6b9203655ff81c5f25c328ed36f..dd83d24f297856763b3a84b196323f219e1193c9 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 {