Skip to content

Commit f22230f

Browse files
committed
Fix microsoft#24050 - lost this error msg when I switched from an error blacklist to a whitelist
1 parent 79b1ec8 commit f22230f

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/vs/workbench/services/search/node/ripgrepTextSearch.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,15 @@ export class RipgrepEngine {
152152
return this.config.searchPaths && this.config.searchPaths.indexOf(errorPath) >= 0 ? firstLine : undefined;
153153
}
154154

155-
return strings.startsWith(firstLine, 'Error parsing regex') ? firstLine : undefined;
155+
if (strings.startsWith(firstLine, 'Error parsing regex')) {
156+
return firstLine;
157+
}
158+
159+
if (strings.startsWith(firstLine, 'error parsing glob')) {
160+
return firstLine;
161+
}
162+
163+
return undefined;
156164
}
157165
}
158166

0 commit comments

Comments
 (0)