mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-01 22:12:26 +01:00
Fix retained webviews not being properly when their editor hides
Fixes #44589
This commit is contained in:
@@ -186,7 +186,9 @@ class WebviewInput extends EditorInput {
|
||||
public releaseWebview(owner: any) {
|
||||
if (this._webviewOwner === owner) {
|
||||
this._webviewOwner = undefined;
|
||||
if (!this._options.retainContextWhenHidden) {
|
||||
if (this._options.retainContextWhenHidden) {
|
||||
this.container.style.visibility = 'hidden';
|
||||
} else {
|
||||
this.disposeWebview();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user