Make sure webviews are properly destroyed/hidden when the webview editor is hidden by a maximized panel
Fixes #94805
This commit is contained in:
parent
3f9e68436b
commit
4eec0cf21e
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue