Skip to content

Commit 4eec0cf

Browse files
committed
Make sure webviews are properly destroyed/hidden when the webview editor is hidden by a maximized panel
Fixes microsoft#94805
1 parent 3f9e684 commit 4eec0cf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ export class WebviewEditor extends BaseEditor {
8686
protected setEditorVisible(visible: boolean, group: IEditorGroup | undefined): void {
8787
if (this.input instanceof WebviewInput && this.webview) {
8888
if (visible) {
89-
this.webview.claim(this);
89+
this.claimWebview(this.input);
9090
} else {
9191
this.webview.release(this);
9292
}
93-
this.claimWebview(this.input);
9493
}
9594
super.setEditorVisible(visible, group);
9695
}

0 commit comments

Comments
 (0)