提交 591c3b5a 编写于 作者: M Matt Bierner

Don't cache webview view title

Revert #105867
上级 7506b2ba
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册