From c65b11bfb550ace6f96a5cc5a1f1c48bfaacf601 Mon Sep 17 00:00:00 2001 From: Colen Garoutte-Carson <49173979+Colengms@users.noreply.github.com> Date: Thu, 26 Sep 2024 16:40:07 -0700 Subject: [PATCH] Fix an issue preventing use of a full command line in compilerPath (#12774) --- Extension/src/LanguageServer/configurations.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}`);