From 50e3593171298d20cf7f8b8600f7a3ab90d16b3a Mon Sep 17 00:00:00 2001 From: Matt Bierner Date: Tue, 15 Sep 2020 11:27:28 -0700 Subject: [PATCH] Add extra guard around when onDidChangeVisibility is fired --- src/vs/workbench/api/common/extHostWebviewView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/common/extHostWebviewView.ts b/src/vs/workbench/api/common/extHostWebviewView.ts index 5122096832e..9cbff1880d5 100644 --- a/src/vs/workbench/api/common/extHostWebviewView.ts +++ b/src/vs/workbench/api/common/extHostWebviewView.ts @@ -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; }