diff --git a/package.json b/package.json index 654a899..fb10734 100644 --- a/package.json +++ b/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" }, { diff --git a/src/views/nodes/draftNode.ts b/src/views/nodes/draftNode.ts index 8d769ff..d4fe06e 100644 --- a/src/views/nodes/draftNode.ts +++ b/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; } }