mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
Fix retained webviews not being properly when their editor hides
Fixes #44589
This commit is contained in:
parent
1d5d103f8a
commit
66aa34ba7e
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue