mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-01 01:25:38 -05:00
Expand account picker support to multiple providers (#23952)
* fix dropdown behavior * expand account picker support to multiple providers * fix tests * fixed unresolved promise issue
This commit is contained in:
@@ -50,7 +50,12 @@ export class AddAccountAction extends Action {
|
||||
// Fire the event that we've started adding accounts
|
||||
this._addAccountStartEmitter.fire();
|
||||
try {
|
||||
await this._accountManagementService.addAccount(this._providerId);
|
||||
if (!this._providerId) {
|
||||
let providerId = await this._accountManagementService.promptProvider();
|
||||
await this._accountManagementService.addAccount(providerId);
|
||||
} else {
|
||||
await this._accountManagementService.addAccount(this._providerId);
|
||||
}
|
||||
this._addAccountCompleteEmitter.fire();
|
||||
} catch (err) {
|
||||
this.logService.error(`Error while adding account: ${err}`);
|
||||
|
||||
Reference in New Issue
Block a user