From 69f013bc7d82a74c0a761fa2f3017a306f12fe1f Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Fri, 29 Jul 2022 03:12:22 -0400 Subject: [PATCH] Improves gating key --- src/env/node/git/localGitProvider.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/env/node/git/localGitProvider.ts b/src/env/node/git/localGitProvider.ts index abf18c3..9d3347c 100644 --- a/src/env/node/git/localGitProvider.ts +++ b/src/env/node/git/localGitProvider.ts @@ -1072,7 +1072,7 @@ export class LocalGitProvider implements GitProvider, Disposable { return this.git.rev_list__left_right(repoPath, refs); } - @gate() + @gate((u, d) => `${u.toString()}|${d?.isDirty}`) @log() async getBlame(uri: GitUri, document?: TextDocument | undefined): Promise { const cc = Logger.getCorrelationContext(); @@ -1237,7 +1237,9 @@ export class LocalGitProvider implements GitProvider, Disposable { } } - @gate() + @gate( + (u, l, d, o) => `${u.toString()}|${l}|${d?.isDirty}|${o?.forceSingleLine}`, + ) @log() async getBlameForLine( uri: GitUri,