Skip to content

Commit c982edb

Browse files
Fixes all Azure PRs being selected when Launchpad opened from indicator
1 parent f4f267a commit c982edb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/plus/launchpad/launchpad.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ export class LaunchpadCommand extends QuickCommand<State> {
321321
opened = true;
322322

323323
const result = yield* this.pickLaunchpadItemStep(state, context, {
324-
picked: state.item?.graphQLId,
324+
picked: state.item?.graphQLId ?? state.item?.uuid,
325325
selectTopItem: state.selectTopItem,
326326
});
327327
if (result === StepResultBreak) {
@@ -515,7 +515,12 @@ export class LaunchpadCommand extends QuickCommand<State> {
515515
? Uri.parse(i.author.avatarUrl)
516516
: undefined,
517517
item: i,
518-
picked: i.graphQLId === picked || i.graphQLId === topItem?.graphQLId,
518+
picked:
519+
i.graphQLId != null
520+
? i.graphQLId === picked || i.graphQLId === topItem?.graphQLId
521+
: i.uuid != null
522+
? i.uuid === picked || i.uuid === topItem?.uuid
523+
: false,
519524
group: ui,
520525
};
521526
};

0 commit comments

Comments
 (0)