diff --git a/src/mob-authors.js b/src/mob-authors.js index 34007e5..6610367 100644 --- a/src/mob-authors.js +++ b/src/mob-authors.js @@ -100,11 +100,15 @@ class MobAuthors { return allRepoAuthors; } + resetRepoAuthorList() { + allRepoAuthors = null; + } + reset() { allAuthors = null; author = null; setMob = null; - allRepoAuthors = null; + this.resetRepoAuthorList(); } } diff --git a/src/setup-git-mob.js b/src/setup-git-mob.js index 4d8f2ad..1b836a5 100644 --- a/src/setup-git-mob.js +++ b/src/setup-git-mob.js @@ -51,6 +51,7 @@ function setupGitMob(context) { }); gitExt.onDidChangeUiState(function () { + coAuthorProvider.mobAuthors.resetRepoAuthorList(); coAuthorProvider.reloadData(); });