Skip to content

Commit f84f285

Browse files
authored
Fix EACCES error when using include wildcards. (#11870)
1 parent 44194c0 commit f84f285

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/configurations.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ export class CppProperties {
806806
if (isGlobPattern) {
807807
// fastGlob silently strips non-found paths. Limit that behavior to dynamic paths only.
808808
const matches: string[] = fastGlob.isDynamicPattern(normalized) ?
809-
fastGlob.sync(normalized, { onlyDirectories: true, cwd }) : [res];
809+
fastGlob.sync(normalized, { onlyDirectories: true, cwd, suppressErrors: true, deep: 15 }) : [res];
810810
resolvedGlob.push(...matches.map(s => s + suffix));
811811
} else {
812812
resolvedGlob.push(normalized + suffix);

0 commit comments

Comments
 (0)