fix account dropdown list issue (#11266)

* fix the empty account list issue

* remove comments
This commit is contained in:
Alan Ren
2020-07-09 13:58:07 -07:00
committed by GitHub
parent 9c0f415bd9
commit 5a275209cc

View File

@@ -802,7 +802,11 @@ async function processAzureAccountField(context: AzureAccountFieldContext): Prom
await vscode.commands.executeCommand('workbench.actions.modal.linkedAccount');
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 {