Skip to content

Commit

Permalink
Fix #50642, fix #50673
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed May 29, 2018
1 parent eec5c07 commit aad96ca
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vs/workbench/services/search/node/searchService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export class SearchService implements ISearchService {
results: arrays.flatten(completes.map(c => c.results))
};
}, errs => {
if (!Array.isArray(errs)) {
errs = [errs];
}

errs = errs.filter(e => !!e);
return TPromise.wrapError(errs[0]);
});
Expand Down

0 comments on commit aad96ca

Please sign in to comment.