Skip to content

Commit dc0a7af

Browse files
authored
resolve compiler undefined message (#10418)
1 parent 3adcec8 commit dc0a7af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ export class DefaultClient implements Client {
967967
const confirmCompiler: string = localize("confirmCompiler.string", "Yes");
968968
const settings: OtherSettings = new OtherSettings();
969969
if (compilerDefaults.compilerPath !== "") {
970-
if (!command) {
970+
if (!command && (compilerDefaults.compilerPath !== undefined)) {
971971
const value: string | undefined = await vscode.window.showInformationMessage(localize("selectCompiler.message", "The compiler {0} was found on this computer. Do you want to configure it for IntelliSense?", compilerDefaults.compilerPath), confirmCompiler, selectCompiler);
972972
if (value === confirmCompiler) {
973973
compilerPaths = await util.addTrustedCompiler(compilerPaths, compilerDefaults.compilerPath);

0 commit comments

Comments
 (0)