From 4c7c0c1a2315539f89d3102ac860d33bac30281b Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Mon, 24 May 2021 01:24:33 -0400 Subject: [PATCH] Ensures check is only for folders --- src/views/nodes/fileHistoryNode.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/nodes/fileHistoryNode.ts b/src/views/nodes/fileHistoryNode.ts index e683016..6e8d878 100644 --- a/src/views/nodes/fileHistoryNode.ts +++ b/src/views/nodes/fileHistoryNode.ts @@ -148,7 +148,7 @@ export class FileHistoryNode extends SubscribeableViewNode impl get label() { // Check if this is a base folder - if (this.uri.fileName === '') { + if (this.folder && this.uri.fileName === '') { return `${paths.basename(this.uri.fsPath)}${ this.uri.sha ? ` ${this.uri.sha === GitRevision.deletedOrMissing ? this.uri.shortSha : `(${this.uri.shortSha})`}`