From 591c3b5a93d4e7fce46a48ea729ca17e20c502ac Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Thu, 24 Sep 2020 11:46:08 -0700 Subject: [PATCH] Don't cache webview view title Revert #105867 --- .../contrib/webviewView/browser/webviewViewPane.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.ts b/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.ts index c4b7399bdffda..4c0849a8821b5 100644 --- a/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.ts +++ b/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.ts @@ -30,7 +30,6 @@ declare const ResizeObserver: any; const storageKeys = { webviewState: 'webviewState', - title: 'title' } as const; export class WebviewViewPane extends ViewPane { @@ -71,11 +70,6 @@ export class WebviewViewPane extends ViewPane { this.memento = new Memento(`webviewView.${this.id}`, storageService); this.viewState = this.memento.getMemento(StorageScope.WORKSPACE); - const storedTitle = this.viewState[storageKeys.title]; - if (typeof storedTitle === 'string') { - this.updateTitle(storedTitle); - } - this._register(this.onDidChangeBodyVisibility(() => this.updateTreeVisibility())); this.updateTreeVisibility(); } @@ -124,7 +118,6 @@ export class WebviewViewPane extends ViewPane { if (this._webview) { this.viewState[storageKeys.webviewState] = this._webview.state; } - this.viewState[storageKeys.title] = this.setTitle; this.memento.saveMemento(); super.saveState();