diff --git a/package.json b/package.json index 85505e5..0ec5cf5 100644 --- a/package.json +++ b/package.json @@ -7063,6 +7063,12 @@ "group": "inline@2" }, { + "command": "gitlens.openBranchInRemote", + "when": "gitlens:hasRemotes && !gitlens:readonly && viewItem =~ /gitlens:status:upstream:(?!none)/", + "group": "inline@99", + "alt": "gitlens.copyRemoteBranchUrl" + }, + { "command": "gitlens.views.push", "when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:status:upstream:ahead", "group": "1_gitlens_actions@1" diff --git a/src/views/nodes/branchTrackingStatusNode.ts b/src/views/nodes/branchTrackingStatusNode.ts index 69e4d54..693577d 100644 --- a/src/views/nodes/branchTrackingStatusNode.ts +++ b/src/views/nodes/branchTrackingStatusNode.ts @@ -29,7 +29,7 @@ export class BranchTrackingStatusNode extends ViewNode implement upstream: string | undefined, upstreamType: string, ): string { - return `${BranchNode.getId(repoPath, name, root)}${this.key}(${upstream ?? ''}|${upstreamType})`; + return `${BranchNode.getId(repoPath, name, root)}${this.key}(${upstream ?? ''}):${upstreamType}`; } constructor(