@@ -624,26 +624,19 @@ export class LaunchpadProvider implements Disposable {
624
624
staleDate . setDate ( staleDate . getDate ( ) - staleThreshold ) ;
625
625
}
626
626
627
- const enrichedItemsPromise = this . getEnrichedItems ( { force : options ?. force , cancellation : cancellation } ) ;
628
-
629
- if ( this . container . git . isDiscoveringRepositories ) {
630
- await this . container . git . isDiscoveringRepositories ;
631
- }
632
-
633
- if ( cancellation ?. isCancellationRequested ) throw new CancellationError ( ) ;
634
-
635
- const [ enrichedItemsResult , prsWithCountsResult ] = await Promise . allSettled ( [
636
- enrichedItemsPromise ,
637
- this . getPullRequestsWithSuggestionCounts ( { force : options ?. force , cancellation : cancellation } ) ,
638
- ] ) ;
639
-
640
- if ( cancellation ?. isCancellationRequested ) throw new CancellationError ( ) ;
641
-
642
627
// TODO: Since this is all repos we probably should order by repos you are a contributor on (or even filter out one you aren't)
643
628
644
629
let result : LaunchpadCategorizedResult | undefined ;
645
630
646
631
try {
632
+ const [ _ , enrichedItemsResult , prsWithCountsResult ] = await Promise . allSettled ( [
633
+ this . container . git . isDiscoveringRepositories ,
634
+ this . getEnrichedItems ( { force : options ?. force , cancellation : cancellation } ) ,
635
+ this . getPullRequestsWithSuggestionCounts ( { force : options ?. force , cancellation : cancellation } ) ,
636
+ ] ) ;
637
+
638
+ if ( cancellation ?. isCancellationRequested ) throw new CancellationError ( ) ;
639
+
647
640
if ( prsWithCountsResult . status === 'rejected' ) {
648
641
Logger . error ( prsWithCountsResult . reason , scope , 'Failed to get pull requests with suggestion counts' ) ;
649
642
result = {
0 commit comments