Skip to content

Commit

Permalink
Update more authors list when switching repos.
Browse files Browse the repository at this point in the history
  • Loading branch information
rkotze committed Apr 20, 2020
1 parent b5bbfd4 commit e9ece4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mob-authors.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,15 @@ class MobAuthors {
return allRepoAuthors;
}

resetRepoAuthorList() {
allRepoAuthors = null;
}

reset() {
allAuthors = null;
author = null;
setMob = null;
allRepoAuthors = null;
this.resetRepoAuthorList();
}
}

Expand Down
1 change: 1 addition & 0 deletions src/setup-git-mob.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ function setupGitMob(context) {
});

gitExt.onDidChangeUiState(function () {
coAuthorProvider.mobAuthors.resetRepoAuthorList();
coAuthorProvider.reloadData();
});

Expand Down

0 comments on commit e9ece4a

Please sign in to comment.