From e18aee800de824cada4adea8fbd5bdacf48b476b Mon Sep 17 00:00:00 2001 From: Vlad Dumitrescu Date: Sat, 19 Jun 2021 19:32:24 +0200 Subject: [PATCH] Keep dynamic patterns in their own groups If using multiple dynamic patterns where some point out to ../ and others would be in the '.' group, all are added to this group, but the file walker can't get out of the base directory and not all files are found. --- src/managers/tasks.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/managers/tasks.ts b/src/managers/tasks.ts index 9694058c..bf7cdca1 100644 --- a/src/managers/tasks.ts +++ b/src/managers/tasks.ts @@ -25,15 +25,6 @@ export function generate(patterns: Pattern[], settings: Settings): Task[] { export function convertPatternsToTasks(positive: Pattern[], negative: Pattern[], dynamic: boolean): Task[] { const positivePatternsGroup = groupPatternsByBaseDirectory(positive); - - // When we have a global group – there is no reason to divide the patterns into independent tasks. - // In this case, the global task covers the rest. - if ('.' in positivePatternsGroup) { - const task = convertPatternGroupToTask('.', positive, negative, dynamic); - - return [task]; - } - return convertPatternGroupsToTasks(positivePatternsGroup, negative, dynamic); }