Fix #76654 - fix checking that workspace folders exist for searches in

remote
This commit is contained in:
Rob Lourens 2019-09-06 14:05:01 -07:00
parent 09c580b197
commit 292685b13f

View file

@ -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) {