Fix retained webviews not being properly when their editor hides

Fixes #44589
This commit is contained in:
Matt Bierner 2018-02-27 14:24:02 -08:00
parent 1d5d103f8a
commit 66aa34ba7e

View file

@ -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();
}
}