Make sure webviews are properly destroyed/hidden when the webview editor is hidden by a maximized panel

Fixes #94805
This commit is contained in:
Matt Bierner 2020-04-14 15:30:00 -07:00
parent 3f9e68436b
commit 4eec0cf21e

View file

@ -86,11 +86,10 @@ export class WebviewEditor extends BaseEditor {
protected setEditorVisible(visible: boolean, group: IEditorGroup | undefined): void {
if (this.input instanceof WebviewInput && this.webview) {
if (visible) {
this.webview.claim(this);
this.claimWebview(this.input);
} else {
this.webview.release(this);
}
this.claimWebview(this.input);
}
super.setEditorVisible(visible, group);
}