Add extra guard around when onDidChangeVisibility is fired
This commit is contained in:
parent
cacb77c0ac
commit
50e3593171
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class ExtHostWebviewView extends Disposable implements vscode.WebviewView {
|
||||||
public get viewType(): string { return this.#viewType; }
|
public get viewType(): string { return this.#viewType; }
|
||||||
|
|
||||||
/* internal */ _setVisible(visible: boolean) {
|
/* internal */ _setVisible(visible: boolean) {
|
||||||
if (visible === this.#isVisible) {
|
if (visible === this.#isVisible || this.#isDisposed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue