Skip to content

Commit 82b8f26

Browse files
authored
Fix 2nd compiler prompt when the command is used. (#10503)
* Fix 2nd compiler prompt when the command is used. * Fix 2nd prompt not appearing after the 1st time.
1 parent 1e779a5 commit 82b8f26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Extension/src/LanguageServer/client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ export class DefaultClient implements Client {
10311031
}
10321032

10331033
async promptSelectCompiler(isCommand: boolean): Promise<void> {
1034+
secondPromptCounter = 0;
10341035
if (compilerDefaults === undefined) {
10351036
return;
10361037
}
@@ -1053,7 +1054,7 @@ export class DefaultClient implements Client {
10531054
} else if (!isCommand && (compilerDefaults.compilerPath === undefined)) {
10541055
this.showPrompt(selectCompiler, false);
10551056
} else {
1056-
this.handleCompilerQuickPick(false);
1057+
this.handleCompilerQuickPick(isCommand);
10571058
}
10581059
}
10591060
}

0 commit comments

Comments
 (0)