diff --git a/Extension/src/LanguageServer/configurations.ts b/Extension/src/LanguageServer/configurations.ts index 8c51e7859a..3a02622b0a 100644 --- a/Extension/src/LanguageServer/configurations.ts +++ b/Extension/src/LanguageServer/configurations.ts @@ -594,7 +594,7 @@ export class CppProperties { configuration.intelliSenseMode === "${default}") { return ""; } - const resolvedCompilerPath: string = this.resolvePath(configuration.compilerPath); + const resolvedCompilerPath: string = this.resolvePath(configuration.compilerPath, false, false); const settings: CppSettings = new CppSettings(this.rootUri); const compilerPathAndArgs: util.CompilerPathAndArgs = util.extractCompilerPathAndArgs(!!settings.legacyCompilerArgsBehavior, resolvedCompilerPath); @@ -1877,8 +1877,7 @@ export class CppProperties { // Check for path-related squiggles. const paths: string[] = []; let compilerPath: string | undefined; - for (const pathArray of [currentConfiguration.browse ? currentConfiguration.browse.path : undefined, - currentConfiguration.includePath, currentConfiguration.macFrameworkPath]) { + for (const pathArray of [currentConfiguration.browse ? currentConfiguration.browse.path : undefined, currentConfiguration.includePath, currentConfiguration.macFrameworkPath]) { if (pathArray) { for (const curPath of pathArray) { paths.push(`${curPath}`);