Skip to content

Commit e61c360

Browse files
authored
Fix no compiler found when compilerPath isn't set. (#4844)
1 parent d479d79 commit e61c360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Extension/src/LanguageServer/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export async function getBuildTasks(returnCompilerPath: boolean): Promise<vscode
311311
knownCompilerPaths = knownCompilers.map<string>(info => info.path);
312312
}
313313

314-
if (!knownCompilerPaths || !userCompilerPath) {
314+
if (!knownCompilerPaths && !userCompilerPath) {
315315
// Don't prompt a message yet until we can make a data-based decision.
316316
telemetry.logLanguageServerEvent('noCompilerFound');
317317
// Display a message prompting the user to install compilers if none were found.

0 commit comments

Comments
 (0)