mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
fix account dropdown list issue (#11266)
* fix the empty account list issue * remove comments
This commit is contained in:
@@ -802,7 +802,11 @@ async function processAzureAccountField(context: AzureAccountFieldContext): Prom
|
|||||||
await vscode.commands.executeCommand('workbench.actions.modal.linkedAccount');
|
await vscode.commands.executeCommand('workbench.actions.modal.linkedAccount');
|
||||||
await populateAzureAccounts();
|
await populateAzureAccounts();
|
||||||
}));
|
}));
|
||||||
await populateAzureAccounts();
|
|
||||||
|
// populate the values in a different batch as the initialization to avoid the issue that the account list is empty even though the values are correctly.
|
||||||
|
setTimeout(async () => {
|
||||||
|
await populateAzureAccounts();
|
||||||
|
}, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
function createAzureAccountDropdown(context: AzureAccountFieldContext): AzureAccountComponents {
|
function createAzureAccountDropdown(context: AzureAccountFieldContext): AzureAccountComponents {
|
||||||
|
|||||||
Reference in New Issue
Block a user