Pārlūkot izejas kodu

Ensures check is only for folders

main
Eric Amodio pirms 3 gadiem
vecāks
revīzija
4c7c0c1a23
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      src/views/nodes/fileHistoryNode.ts

+ 1
- 1
src/views/nodes/fileHistoryNode.ts Parādīt failu

@ -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})`}`

Notiek ielāde…
Atcelt
Saglabāt