Skip to content

Commit

Permalink
Opens cloud patch on row select (hides icon for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
axosoft-ramint committed Nov 9, 2023
1 parent 04fcc78 commit 213ca03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11997,11 +11997,6 @@
"when": "viewItem == gitlens:message:signin",
"group": "inline@1"
},
{
"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",
Expand Down
5 changes: 5 additions & 0 deletions src/views/nodes/draftNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 213ca03

Please sign in to comment.