Skip to content

Commit 4ad520d

Browse files
committed
Shows a PR that is hidden in a collapsed group
(#3543)
1 parent 19ada85 commit 4ad520d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plus/launchpad/launchpad.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,6 @@ export class LaunchpadCommand extends QuickCommand<State> {
457457
item: i,
458458
picked: i.graphQLId === picked || i.graphQLId === topItem?.graphQLId,
459459
group: ui,
460-
alwaysShow: i.isSearched,
461460
};
462461
};
463462

@@ -623,6 +622,11 @@ export class LaunchpadCommand extends QuickCommand<State> {
623622
}
624623
// Nothing is found above, so let's perform search in the API:
625624
await updateItems(quickpick, value);
625+
quickpick.items.forEach(i => {
626+
if ('item' in i && doesPullRequestSatisfyGitHubRepositoryURLIdentity(i.item, prUrlIdentity)) {
627+
i.alwaysShow = true;
628+
}
629+
});
626630
quickpick.items = quickpick.items.filter((i): i is LaunchpadItemQuickPickItem => 'item' in i);
627631
groupsHidden = true;
628632
return true;

0 commit comments

Comments
 (0)