Skip to content

Commit

Permalink
Ensure active selection in Launchpad
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 16, 2024
1 parent 082022f commit 94f1875
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/plus/launchpad/launchpadIndicator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class LaunchpadIndicator implements Disposable {
source: 'launchpad-indicator',
state: {
initialGroup: 'mergeable',
selectTopItem: labelType === 'item',
selectTopItem: true,
},
} satisfies Omit<LaunchpadCommandArgs, 'command'>),
)} "Open Ready to Merge in Launchpad")`,
Expand Down Expand Up @@ -429,7 +429,10 @@ export class LaunchpadIndicator implements Disposable {
}](command:gitlens.showLaunchpad?${encodeURIComponent(
JSON.stringify({
source: 'launchpad-indicator',
state: { initialGroup: 'blocked', selectTopItem: labelType === 'item' },
state: {
initialGroup: 'blocked',
selectTopItem: true,
},
} satisfies Omit<LaunchpadCommandArgs, 'command'>),
)} "Open Blocked in Launchpad")`,
);
Expand Down Expand Up @@ -465,7 +468,7 @@ export class LaunchpadIndicator implements Disposable {
source: 'launchpad-indicator',
state: {
initialGroup: 'follow-up',
selectTopItem: labelType === 'item',
selectTopItem: true,
},
} satisfies Omit<LaunchpadCommandArgs, 'command'>),
)} "Open Follow-Up in Launchpad")`,
Expand All @@ -488,7 +491,7 @@ export class LaunchpadIndicator implements Disposable {
source: 'launchpad-indicator',
state: {
initialGroup: 'needs-review',
selectTopItem: labelType === 'item',
selectTopItem: true,
},
} satisfies Omit<LaunchpadCommandArgs, 'command'>),
)} "Open Needs Your Review in Launchpad")`,
Expand Down

0 comments on commit 94f1875

Please sign in to comment.