mirror of
https://github.com/microsoft/vscode.git
synced 2026-09-12 20:12:23 +01:00
Make sure webviews are properly destroyed/hidden when the webview editor is hidden by a maximized panel
Fixes #94805
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user