From 82ce0d0d77b557b2f026e1e0bb959766f93314bc Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 25 Nov 2020 02:28:39 -0500 Subject: [PATCH] Gates getCurrentUser to avoid extra git calls --- src/git/gitService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/git/gitService.ts b/src/git/gitService.ts index ca33a10..c79f940 100644 --- a/src/git/gitService.ts +++ b/src/git/gitService.ts @@ -1394,6 +1394,7 @@ export class GitService implements Disposable { } @log() + @gate() async getCurrentUser(repoPath: string) { let user = this._userMapCache.get(repoPath); if (user != null) return user;