diff --git a/Extension/src/LanguageServer/configurations.ts b/Extension/src/LanguageServer/configurations.ts index 94c349a11..6870619b8 100644 --- a/Extension/src/LanguageServer/configurations.ts +++ b/Extension/src/LanguageServer/configurations.ts @@ -1612,7 +1612,7 @@ export class CppProperties { resolvedCompilerPath = which.sync(config.compilerPath, { nothrow: true }); } - if (resolvedCompilerPath === undefined) { + if (!resolvedCompilerPath) { resolvedCompilerPath = this.resolvePath(config.compilerPath); } const settings: CppSettings = new CppSettings(this.rootUri);