Skip to content

Commit

Permalink
Shows a PR that is hidden in a collapsed group
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeibbb committed Oct 21, 2024
1 parent 19ada85 commit 4ad520d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/plus/launchpad/launchpad.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ export class LaunchpadCommand extends QuickCommand<State> {
item: i,
picked: i.graphQLId === picked || i.graphQLId === topItem?.graphQLId,
group: ui,
alwaysShow: i.isSearched,
};
};

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

0 comments on commit 4ad520d

Please sign in to comment.