瀏覽代碼

Fixes #572 - can't expand some branch folders

Duplicate nodes caused by branches with the same last path part
main
Eric Amodio 6 年之前
父節點
當前提交
043c4e184f
共有 2 個文件被更改,包括 4 次插入1 次删除
  1. +1
    -0
      CHANGELOG.md
  2. +3
    -1
      src/views/nodes/branchOrTagFolderNode.ts

+ 1
- 0
CHANGELOG.md 查看文件

@ -22,6 +22,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Fixes an issue where gravatar icons would sometimes not show up — thanks to [PR #579](https://github.com/eamodio/vscode-gitlens/pull/579) by sgtwilko ([@sgtwilko](https://github.com/sgtwilko))
- Fixes [#501](https://github.com/eamodio/vscode-gitlens/issues/501) — Azure DevOps ssh remotes aren't handled properly
- Fixes [#572](https://github.com/eamodio/vscode-gitlens/issues/572) — Explorer cant expand some branch folders
## [9.0.3] - 2018-12-06

+ 3
- 1
src/views/nodes/branchOrTagFolderNode.ts 查看文件

@ -7,6 +7,8 @@ import { BranchNode } from './branchNode';
import { TagNode } from './tagNode';
import { ResourceType, ViewNode } from './viewNode';
const set = new Set();
export class BranchOrTagFolderNode extends ViewNode {
constructor(
view: View,
@ -22,7 +24,7 @@ export class BranchOrTagFolderNode extends ViewNode {
}
get id(): string {
return `gitlens:repository(${this.repoPath}):${this.type}-folder(${this.folderName})`;
return `gitlens:repository(${this.repoPath}):${this.type}-folder(${this.relativePath})`;
}
async getChildren(): Promise<ViewNode[]> {

Loading…
取消
儲存