Fixes uris on nodes

This commit is contained in:
Eric Amodio
2017-06-26 03:14:17 -04:00
parent d193676502
commit c96a659e9e
9 changed files with 28 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ export class BranchHistoryNode extends ExplorerNode {
readonly resourceType: ResourceType = 'branch-history';
constructor(public branch: GitBranch, uri: GitUri, context: ExtensionContext, git: GitService) {
constructor(public readonly branch: GitBranch, uri: GitUri, context: ExtensionContext, git: GitService) {
super(uri, context, git);
}
@@ -18,7 +18,7 @@ export class BranchHistoryNode extends ExplorerNode {
const log = await this.git.getLogForRepo(this.uri.repoPath!, this.branch.name);
if (log === undefined) return [];
return [...Iterables.map(log.commits.values(), c => new CommitNode(c, this.uri, this.context, this.git))];
return [...Iterables.map(log.commits.values(), c => new CommitNode(c, this.context, this.git))];
}
getTreeItem(): TreeItem {