We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4fff91 commit 440376aCopy full SHA for 440376a
src/model.ts
@@ -169,7 +169,9 @@ export class GitExtension implements IGitExtension, IDisposable {
169
return;
170
}
171
this._isDisposed = true;
172
- this._poll.dispose();
+ if (this._poll) {
173
+ this._poll.dispose();
174
+ }
175
Signal.clearData(this);
176
177
@@ -347,8 +349,12 @@ export class GitExtension implements IGitExtension, IDisposable {
347
349
348
350
351
async refreshStatus(): Promise<void> {
- await this._poll.refresh();
- await this._poll.tick;
352
353
+ await this._poll.refresh();
354
+ await this._poll.tick;
355
+ } else {
356
+ await Promise.resolve();
357
358
359
360
/** Refresh the git repository status */
0 commit comments