We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc8cc91 commit 4407af1Copy full SHA for 4407af1
1 file changed
src/issues/issuesView.ts
@@ -195,8 +195,10 @@ export class IssuesTreeData
195
for (const fm of this.manager.folderManagers) {
196
const issueCol = this.stateManager.getIssueCollection(fm.repository.rootUri);
197
const queryResultPromises = Array.from(issueCol.values());
198
- const queryResults = await Promise.all(queryResultPromises);
199
- const hasMatchingIssues = queryResults.some(r => r.issues && r.issues.length > 0);
+ const queryResults = await Promise.allSettled(queryResultPromises);
+ const hasMatchingIssues = queryResults.some(r =>
200
+ r.status === 'fulfilled' && r.value.issues && r.value.issues.length > 0
201
+ );
202
if (hasMatchingIssues) {
203
managersWithIssues.push(fm);
204
}
0 commit comments