Add extra guard around when onDidChangeVisibility is fired

This commit is contained in:
Matt Bierner 2020-09-15 11:27:28 -07:00
parent cacb77c0ac
commit 50e3593171

View file

@ -93,7 +93,7 @@ class ExtHostWebviewView extends Disposable implements vscode.WebviewView {
public get viewType(): string { return this.#viewType; }
/* internal */ _setVisible(visible: boolean) {
if (visible === this.#isVisible) {
if (visible === this.#isVisible || this.#isDisposed) {
return;
}