From 462789a4168efe381dad7043ef775e168a1a9621 Mon Sep 17 00:00:00 2001 From: Bob Brown Date: Thu, 17 Apr 2025 09:52:49 -0700 Subject: [PATCH] No error message shown in config UI for invalid compilerPath --- Extension/src/LanguageServer/configurations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);