Skip to content

Commit 0f4d15e

Browse files
Adds 'open on GitHub' button to relevant rows in launchpad actions
1 parent 80309b2 commit 0f4d15e

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/plus/focus/focus.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ export class FocusCommand extends QuickCommand<State> {
578578
{
579579
label: 'Merge...',
580580
detail: `Will merge ${from}${into}`,
581+
buttons: [OpenOnGitHubQuickInputButton],
581582
},
582583
action,
583584
),
@@ -589,6 +590,7 @@ export class FocusCommand extends QuickCommand<State> {
589590
createQuickPickItemOfT(
590591
{
591592
label: `${this.getOpenActionLabel(state.item.actionableCategory)} on GitHub`,
593+
buttons: [OpenOnGitHubQuickInputButton],
592594
},
593595
action,
594596
),
@@ -802,12 +804,17 @@ export class FocusCommand extends QuickCommand<State> {
802804
status = `$(pass) No conflicts`;
803805
}
804806

805-
return createQuickPickItemOfT({ label: status }, 'soft-open');
807+
return createQuickPickItemOfT({ label: status, buttons: [OpenOnGitHubQuickInputButton] }, 'soft-open');
806808
}
807809

808810
private getFocusItemReviewInformation(item: FocusItem): QuickPickItemOfT<FocusAction>[] {
809811
if (item.reviews == null || item.reviews.length === 0) {
810-
return [createQuickPickItemOfT({ label: `$(info) No reviewers have been assigned` }, 'soft-open')];
812+
return [
813+
createQuickPickItemOfT(
814+
{ label: `$(info) No reviewers have been assigned`, buttons: [OpenOnGitHubQuickInputButton] },
815+
'soft-open',
816+
),
817+
];
811818
}
812819

813820
const reviewInfo: QuickPickItemOfT<FocusAction>[] = [];
@@ -834,7 +841,12 @@ export class FocusCommand extends QuickCommand<State> {
834841
}
835842

836843
if (reviewLabel != null) {
837-
reviewInfo.push(createQuickPickItemOfT({ label: reviewLabel, iconPath: iconPath }, 'soft-open'));
844+
reviewInfo.push(
845+
createQuickPickItemOfT(
846+
{ label: reviewLabel, iconPath: iconPath, buttons: [OpenOnGitHubQuickInputButton] },
847+
'soft-open',
848+
),
849+
);
838850
}
839851
}
840852

0 commit comments

Comments
 (0)