瀏覽代碼

Adds open branch on remote to status nodes

main
Eric Amodio 4 年之前
父節點
當前提交
892ef3316d
共有 2 個檔案被更改,包括 7 行新增1 行删除
  1. +6
    -0
      package.json
  2. +1
    -1
      src/views/nodes/branchTrackingStatusNode.ts

+ 6
- 0
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"

+ 1
- 1
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(

Loading…
取消
儲存