From 4083dbdc0d3f7a7306e524e198bcad3f76f5b9c8 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 11 Nov 2020 02:57:03 -0500 Subject: [PATCH] Fixes blame range --- src/codelens/codeLensProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codelens/codeLensProvider.ts b/src/codelens/codeLensProvider.ts index 169e10d..5d688ea 100644 --- a/src/codelens/codeLensProvider.ts +++ b/src/codelens/codeLensProvider.ts @@ -175,7 +175,7 @@ export class GitCodeLensProvider implements CodeLensProvider { if (token.isCancellationRequested) return lenses; - const documentRangeFn = Functions.once(() => document.validateRange(new Range(0, 1000000, 1000000, 1000000))); + const documentRangeFn = Functions.once(() => document.validateRange(new Range(0, 0, 1000000, 1000000))); // Since blame information isn't valid when there are unsaved changes -- update the lenses appropriately const dirtyCommand: Command | undefined = dirty