瀏覽代碼

Ensures check is only for folders

main
Eric Amodio 3 年之前
父節點
當前提交
4c7c0c1a23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/views/nodes/fileHistoryNode.ts

+ 1
- 1
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})`}`

Loading…
取消
儲存