From 6cdd7c3973d45c1a262b7b31578eec22a5a30a9c Mon Sep 17 00:00:00 2001 From: Sean McManus Date: Mon, 3 Feb 2025 06:58:41 -0800 Subject: [PATCH] Fix Select IntelliSense Configuration regression. --- Extension/src/LanguageServer/client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Extension/src/LanguageServer/client.ts b/Extension/src/LanguageServer/client.ts index ffdf0ae79..19ac3ab80 100644 --- a/Extension/src/LanguageServer/client.ts +++ b/Extension/src/LanguageServer/client.ts @@ -1135,10 +1135,9 @@ export class DefaultClient implements Client { return ui.ShowConfigureIntelliSenseButton(false, this, ConfigurationType.CompileCommands, showButtonSender); } else { action = "select compiler"; - const newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index]; - + let newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index]; + newCompiler = newCompiler.replace(/[\\/]/g, preferredPathSeparator); settings.defaultCompilerPath = newCompiler; - settings.defaultCompilerPath = settings.defaultCompilerPath.replace(/[\\/]/g, preferredPathSeparator); await this.configuration.updateCompilerPathIfSet(newCompiler); void SessionState.trustedCompilerFound.set(true); }