Skip to content

Commit

Permalink
Fix EACCES error when using include wildcards. (#11870)
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-mcmanus authored Jan 17, 2024
1 parent 44194c0 commit f84f285
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extension/src/LanguageServer/configurations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ export class CppProperties {
if (isGlobPattern) {
// fastGlob silently strips non-found paths. Limit that behavior to dynamic paths only.
const matches: string[] = fastGlob.isDynamicPattern(normalized) ?
fastGlob.sync(normalized, { onlyDirectories: true, cwd }) : [res];
fastGlob.sync(normalized, { onlyDirectories: true, cwd, suppressErrors: true, deep: 15 }) : [res];
resolvedGlob.push(...matches.map(s => s + suffix));
} else {
resolvedGlob.push(normalized + suffix);
Expand Down

0 comments on commit f84f285

Please sign in to comment.