From 2ac718beac2a6c03ced28d6f8841a06075c0d425 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Sun, 17 Nov 2019 22:36:34 -0500 Subject: [PATCH] Stops logging file contents on dirty blame --- src/git/gitService.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/git/gitService.ts b/src/git/gitService.ts index 8d9336f..3013dcc 100644 --- a/src/git/gitService.ts +++ b/src/git/gitService.ts @@ -1005,7 +1005,11 @@ export class GitService implements Disposable { return this.getBlameForRangeSync(blame, uri, range); } - @log() + @log({ + args: { + 2: contents => '' + } + }) async getBlameForRangeContents(uri: GitUri, range: Range, contents: string): Promise { 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 => '' } + args: { + 0: blame => '' + } }) getBlameForRangeSync(blame: GitBlame, uri: GitUri, range: Range): GitBlameLines | undefined { if (blame.lines.length === 0) return { allLines: blame.lines, ...blame };