mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
fix the account not found error when creating firewall rules (#2543)
This commit is contained in:
@@ -90,6 +90,7 @@ export class ExtHostAccountManagement extends ExtHostAccountManagementShape {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public $getSecurityToken(account: sqlops.Account): Thenable<{}> {
|
public $getSecurityToken(account: sqlops.Account): Thenable<{}> {
|
||||||
|
return this.$getAllAccounts().then(() => {
|
||||||
for (const handle in this._accounts) {
|
for (const handle in this._accounts) {
|
||||||
const providerHandle = parseInt(handle);
|
const providerHandle = parseInt(handle);
|
||||||
if (this._accounts[handle].findIndex((acct) => acct.key.accountId === account.key.accountId) !== -1) {
|
if (this._accounts[handle].findIndex((acct) => acct.key.accountId === account.key.accountId) !== -1) {
|
||||||
@@ -98,6 +99,7 @@ export class ExtHostAccountManagement extends ExtHostAccountManagementShape {
|
|||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(`Account ${account.key.accountId} not found.`);
|
throw new Error(`Account ${account.key.accountId} not found.`);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public get onDidChangeAccounts(): Event<sqlops.DidChangeAccountsParams> {
|
public get onDidChangeAccounts(): Event<sqlops.DidChangeAccountsParams> {
|
||||||
|
|||||||
Reference in New Issue
Block a user