提交 068f3ab0 编写于 作者: R Rob Lourens

Handle empty folderResources for file query

上级 f2a93564
......@@ -41,9 +41,9 @@ export class QueryBuilder {
// Build folderQueries from searchPaths, if given, otherwise folderResources
searchPaths = (searchPaths && searchPaths.length) ?
searchPaths :
folderResources.map(fr => <ISearchPathPattern>{ searchPath: fr });
folderResources && folderResources.map(fr => <ISearchPathPattern>{ searchPath: fr });
const folderQueries = searchPaths.map(searchPath => {
const folderQueries = searchPaths && searchPaths.map(searchPath => {
const folderQuery = this.getFolderQuery(searchPath.searchPath, options);
if (searchPath.pattern) {
folderQuery.includePattern = patternListToIExpression([searchPath.pattern]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册