瀏覽代碼

Stops logging file contents on dirty blame

main
Eric Amodio 5 年之前
父節點
當前提交
2ac718beac
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. +8
    -2
      src/git/gitService.ts

+ 8
- 2
src/git/gitService.ts 查看文件

@ -1005,7 +1005,11 @@ export class GitService implements Disposable {
return this.getBlameForRangeSync(blame, uri, range);
}
@log()
@log({
args: {
2: contents => '<contents>'
}
})
async getBlameForRangeContents(uri: GitUri, range: Range, contents: string): Promise<GitBlameLines | undefined> {
const blame = await this.getBlameForFileContents(uri, contents);
if (blame === undefined) return undefined;
@ -1014,7 +1018,9 @@ export class GitService implements Disposable {
}
@log({
args: { 0: blame => '<blame>' }
args: {
0: blame => '<blame>'
}
})
getBlameForRangeSync(blame: GitBlame, uri: GitUri, range: Range): GitBlameLines | undefined {
if (blame.lines.length === 0) return { allLines: blame.lines, ...blame };

Loading…
取消
儲存