提交 52b6e7c4 编写于 作者: M Matt Bierner

Make sure we hide the webview overlay when it is not in use

上级 2091f715
......@@ -81,9 +81,8 @@ class DynamicWebviewEditorOverlay extends Disposable implements WebviewEditorOve
}
this._owner = undefined;
if (this.options.retainContextWhenHidden) {
this.container.style.visibility = 'hidden';
} else {
this.container.style.visibility = 'hidden';
if (!this.options.retainContextWhenHidden) {
this._webview.clear();
this._webviewEvents.clear();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册