mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
Add extra guard around when onDidChangeVisibility is fired
This commit is contained in:
parent
cacb77c0ac
commit
50e3593171
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue