Browse Source

Gates blame to avoid duplicate lookups

main
Eric Amodio 2 years ago
parent
commit
8f96bba1af
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/env/node/git/localGitProvider.ts

+ 2
- 0
src/env/node/git/localGitProvider.ts View File

@ -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<GitBlame | undefined> {
const cc = Logger.getCorrelationContext();
@ -802,6 +803,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
}
}
@gate()
@log()
async getBlameForLine(
uri: GitUri,

Loading…
Cancel
Save