From 4c1cef3effdf5dc97ab4e53fb017fd58ee48b625 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 1 Oct 2019 01:14:34 -0400 Subject: [PATCH] Fixes show in view action when uncommitted --- 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 6ab449b..71a2ae5 100644 --- a/src/codelens/codeLensProvider.ts +++ b/src/codelens/codeLensProvider.ts @@ -613,7 +613,7 @@ export class GitCodeLensProvider implements CodeLensProvider { }; lens.command = { title: title, - command: Commands.ShowCommitsInView, + command: refs.length === 0 ? '' : Commands.ShowCommitsInView, arguments: [commandArgs] }; return lens;