浏览代码

Opens cloud patch on row select (hides icon for now)

main
Ramin Tadayon 1年前
父节点
当前提交
213ca034dc
找不到此签名对应的密钥 GPG 密钥 ID: 79D60DDE3DFB95F5
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. +0
    -5
      package.json
  2. +5
    -0
      src/views/nodes/draftNode.ts

+ 0
- 5
package.json 查看文件

@ -12000,11 +12000,6 @@
{
"command": "gitlens.views.drafts.open",
"when": "viewItem =~ /gitlens:draft\\b/ && gitlens:plus",
"group": "inline@1"
},
{
"command": "gitlens.views.drafts.open",
"when": "viewItem =~ /gitlens:draft\\b/ && gitlens:plus",
"group": "1_gitlens_actions@1"
},
{

+ 5
- 0
src/views/nodes/draftNode.ts 查看文件

@ -55,6 +55,11 @@ export class DraftNode extends ViewNode<'draft', DraftsView> {
}`,
);
item.description = fromNow(this.draft.updatedAt);
item.command = {
title: 'Show Patch',
command: this.view.getQualifiedCommand('open'),
arguments: [this],
};
return item;
}
}

正在加载...
取消
保存