Skip to content

Commit 9712812

Browse files
committed
Fix Select IntelliSense Configuration regression. (#13224)
1 parent 006ebff commit 9712812

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
@@ -1134,10 +1134,9 @@ export class DefaultClient implements Client {
11341134
return ui.ShowConfigureIntelliSenseButton(false, this, ConfigurationType.CompileCommands, showButtonSender);
11351135
} else {
11361136
action = "select compiler";
1137-
const newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index];
1138-
1137+
let newCompiler: string = util.isCl(paths[index]) ? "cl.exe" : paths[index];
1138+
newCompiler = newCompiler.replace(/[\\/]/g, preferredPathSeparator);
11391139
settings.defaultCompilerPath = newCompiler;
1140-
settings.defaultCompilerPath = settings.defaultCompilerPath.replace(/[\\/]/g, preferredPathSeparator);
11411140
await this.configuration.updateCompilerPathIfSet(newCompiler);
11421141
void SessionState.trustedCompilerFound.set(true);
11431142
}

0 commit comments

Comments
 (0)