瀏覽代碼

Improves gating key

main
Eric Amodio 2 年之前
父節點
當前提交
69f013bc7d
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/env/node/git/localGitProvider.ts

+ 4
- 2
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<LocalGitProvider['getBlame']>((u, d) => `${u.toString()}|${d?.isDirty}`)
@log()
async getBlame(uri: GitUri, document?: TextDocument | undefined): Promise<GitBlame | undefined> {
const cc = Logger.getCorrelationContext();
@ -1237,7 +1237,9 @@ export class LocalGitProvider implements GitProvider, Disposable {
}
}
@gate()
@gate<LocalGitProvider['getBlameForLine']>(
(u, l, d, o) => `${u.toString()}|${l}|${d?.isDirty}|${o?.forceSingleLine}`,
)
@log()
async getBlameForLine(
uri: GitUri,

Loading…
取消
儲存