diff --git a/Extension/src/LanguageServer/configurations.ts b/Extension/src/LanguageServer/configurations.ts index dd9e25d2f..bebbc1772 100644 --- a/Extension/src/LanguageServer/configurations.ts +++ b/Extension/src/LanguageServer/configurations.ts @@ -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);