Browse Source

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

main
Ramin Tadayon 1 year ago
parent
commit
213ca034dc
No known key found for this signature in database GPG Key ID: 79D60DDE3DFB95F5
2 changed files with 5 additions and 5 deletions
  1. +0
    -5
      package.json
  2. +5
    -0
      src/views/nodes/draftNode.ts

+ 0
- 5
package.json View File

@ -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 View File

@ -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;
}
}

Loading…
Cancel
Save