From 8f96bba1af4c6d04722cccf453d5ad0fcf5bde96 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sat, 22 Jan 2022 01:48:56 -0500 Subject: [PATCH] Gates blame to avoid duplicate lookups --- src/env/node/git/localGitProvider.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/env/node/git/localGitProvider.ts b/src/env/node/git/localGitProvider.ts index 39ab11b..7017cfd 100644 --- a/src/env/node/git/localGitProvider.ts +++ b/src/env/node/git/localGitProvider.ts @@ -642,6 +642,7 @@ export class LocalGitProvider implements GitProvider, Disposable { return Git.rev_list__left_right(repoPath, refs); } + @gate() @log() async getBlameForFile(uri: GitUri): Promise { const cc = Logger.getCorrelationContext(); @@ -802,6 +803,7 @@ export class LocalGitProvider implements GitProvider, Disposable { } } + @gate() @log() async getBlameForLine( uri: GitUri,