Skip to content

Commit 64c00a9

Browse files
authored
Fix Select IntelliSense Configuration regression. (#13224)
1 parent 0a64b77 commit 64c00a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,10 +1135,9 @@ export class DefaultClient implements Client {
11351135
return ui.ShowConfigureIntelliSenseButton(false, this, ConfigurationType.CompileCommands, showButtonSender);
11361136
} else {
11371137
action = "select compiler";
1138-
const newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index];
1139-
1138+
let newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index];
1139+
newCompiler = newCompiler.replace(/[\\/]/g, preferredPathSeparator);
11401140
settings.defaultCompilerPath = newCompiler;
1141-
settings.defaultCompilerPath = settings.defaultCompilerPath.replace(/[\\/]/g, preferredPathSeparator);
11421141
await this.configuration.updateCompilerPathIfSet(newCompiler);
11431142
void SessionState.trustedCompilerFound.set(true);
11441143
}

0 commit comments

Comments
 (0)