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.
This commit is contained in:
Sean McManus
2023-02-09 16:21:44 -08:00
committed by GitHub
parent 1e779a5a3c
commit 82b8f261a8
+2 -1
View File
@@ -1031,6 +1031,7 @@ export class DefaultClient implements Client {
}
async promptSelectCompiler(isCommand: boolean): Promise<void> {
secondPromptCounter = 0;
if (compilerDefaults === undefined) {
return;
}
@@ -1053,7 +1054,7 @@ export class DefaultClient implements Client {
} else if (!isCommand && (compilerDefaults.compilerPath === undefined)) {
this.showPrompt(selectCompiler, false);
} else {
this.handleCompilerQuickPick(false);
this.handleCompilerQuickPick(isCommand);
}
}
}