mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
Fix #24050 - lost this error msg when I switched from an error blacklist to a whitelist
This commit is contained in:
parent
79b1ec851a
commit
f22230f407
|
@ -152,7 +152,15 @@ export class RipgrepEngine {
|
|||
return this.config.searchPaths && this.config.searchPaths.indexOf(errorPath) >= 0 ? firstLine : undefined;
|
||||
}
|
||||
|
||||
return strings.startsWith(firstLine, 'Error parsing regex') ? firstLine : undefined;
|
||||
if (strings.startsWith(firstLine, 'Error parsing regex')) {
|
||||
return firstLine;
|
||||
}
|
||||
|
||||
if (strings.startsWith(firstLine, 'error parsing glob')) {
|
||||
return firstLine;
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue