mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-27 09:35:37 -05:00
SQL Bindings refactor password prompting (#19371)
* remove password enter manually - since we prompt user to include it prior * go back to connection profile prompt * add manual entry if connection info password is not saved * add tests that verify all password prompt scenarios * nit
This commit is contained in:
@@ -119,7 +119,13 @@ export async function createAzureFunction(node?: ITreeNodeInfo): Promise<void> {
|
||||
telemetryStep = CreateAzureFunctionStep.launchFromCommandPalette;
|
||||
// prompt user for connection profile to get connection info
|
||||
while (true) {
|
||||
connectionInfo = await vscodeMssqlApi.promptForConnection(true);
|
||||
try {
|
||||
connectionInfo = await vscodeMssqlApi.promptForConnection(true);
|
||||
} catch (e) {
|
||||
// user cancelled while creating connection profile
|
||||
// show the connection profile selection prompt again
|
||||
continue;
|
||||
}
|
||||
if (!connectionInfo) {
|
||||
// User cancelled
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user