Browse Source

Avoids duplicates reasons

main
Eric Amodio 7 years ago
parent
commit
0c76a72cc3
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/gitService.ts

+ 4
- 1
src/gitService.ts View File

@ -264,7 +264,10 @@ export class GitService extends Disposable {
this._fireRepoChangeDebounced = Functions.debounce(this._fireRepoChangeCore, 50);
}
this._repoChangedReasons.push(reason);
if (!this._repoChangedReasons.includes(reason)) {
this._repoChangedReasons.push(reason);
}
return this._fireRepoChangeDebounced();
}

Loading…
Cancel
Save