Skip to content

Commit 52b6e7c

Browse files
author
Matt Bierner
committed
Make sure we hide the webview overlay when it is not in use
1 parent 2091f71 commit 52b6e7c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/vs/workbench/contrib/webview/browser/webviewService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ class DynamicWebviewEditorOverlay extends Disposable implements WebviewEditorOve
8181
}
8282

8383
this._owner = undefined;
84-
if (this.options.retainContextWhenHidden) {
85-
this.container.style.visibility = 'hidden';
86-
} else {
84+
this.container.style.visibility = 'hidden';
85+
if (!this.options.retainContextWhenHidden) {
8786
this._webview.clear();
8887
this._webviewEvents.clear();
8988
}

0 commit comments

Comments
 (0)