Skip to content

Commit

Permalink
Fix #76654 - fix checking that workspace folders exist for searches in
Browse files Browse the repository at this point in the history
remote
  • Loading branch information
roblourens committed Sep 6, 2019
1 parent 09c580b commit 292685b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/search/browser/searchView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ export class SearchView extends ViewletPanel {
return this.fileService.exists(fq.folder);
});

return Promise.resolve(folderQueriesExistP).then(existResults => {
return Promise.all(folderQueriesExistP).then(existResults => {
// If no folders exist, show an error message about the first one
const existingFolderQueries = query.folderQueries.filter((folderQuery, i) => existResults[i]);
if (!query.folderQueries.length || existingFolderQueries.length) {
Expand Down

0 comments on commit 292685b

Please sign in to comment.