|
@ -16,13 +16,16 @@ export class BranchOrTagFolderNode extends ViewNode { |
|
|
public readonly folderName: string, |
|
|
public readonly folderName: string, |
|
|
public readonly relativePath: string | undefined, |
|
|
public readonly relativePath: string | undefined, |
|
|
public readonly root: Arrays.HierarchicalItem<BranchNode | TagNode>, |
|
|
public readonly root: Arrays.HierarchicalItem<BranchNode | TagNode>, |
|
|
|
|
|
private readonly _key?: string, |
|
|
private readonly _expanded: boolean = false |
|
|
private readonly _expanded: boolean = false |
|
|
) { |
|
|
) { |
|
|
super(GitUri.fromRepoPath(repoPath), view, parent); |
|
|
super(GitUri.fromRepoPath(repoPath), view, parent); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
get id(): string { |
|
|
get id(): string { |
|
|
return `${this._instanceId}:gitlens:repository(${this.repoPath}):${this.type}-folder(${this.relativePath})`; |
|
|
|
|
|
|
|
|
return `${this._instanceId}:gitlens:repository(${this.repoPath})${ |
|
|
|
|
|
this._key === undefined ? '' : `:${this._key}` |
|
|
|
|
|
}:${this.type}-folder(${this.relativePath})`;
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
getChildren(): ViewNode[] { |
|
|
getChildren(): ViewNode[] { |
|
@ -45,6 +48,7 @@ export class BranchOrTagFolderNode extends ViewNode { |
|
|
folder.name, |
|
|
folder.name, |
|
|
folder.relativePath, |
|
|
folder.relativePath, |
|
|
folder, |
|
|
folder, |
|
|
|
|
|
this._key, |
|
|
expanded |
|
|
expanded |
|
|
) |
|
|
) |
|
|
); |
|
|
); |
|
|