From a1f38ba28a117dd619a1d742788e85890ed97584 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 21 Dec 2021 01:50:04 -0500 Subject: [PATCH] Fixes decorator order --- src/git/gitProviderService.ts | 2 +- src/git/providers/localGitProvider.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git/gitProviderService.ts b/src/git/gitProviderService.ts index b2493c4..cff64d5 100644 --- a/src/git/gitProviderService.ts +++ b/src/git/gitProviderService.ts @@ -993,8 +993,8 @@ export class GitProviderService implements Disposable { return provider.getContributors(path, options); } - @log() @gate() + @log() async getCurrentUser(repoPath: string | Uri): Promise { const { provider, path } = this.getProvider(repoPath); return provider.getCurrentUser(path); diff --git a/src/git/providers/localGitProvider.ts b/src/git/providers/localGitProvider.ts index 0e9cb0f..83bbd5d 100644 --- a/src/git/providers/localGitProvider.ts +++ b/src/git/providers/localGitProvider.ts @@ -1253,8 +1253,8 @@ export class LocalGitProvider implements GitProvider, Disposable { return contributors; } - @log() @gate() + @log() async getCurrentUser(repoPath: string): Promise { let user = this._userMapCache.get(repoPath); if (user != null) return user;