mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add Azure account initialization logging (#13235)
This commit is contained in:
@@ -88,6 +88,7 @@ export class AzureAccountProvider implements azdata.AccountProvider, vscode.Disp
|
|||||||
|
|
||||||
private async _initialize(storedAccounts: azdata.Account[]): Promise<azdata.Account[]> {
|
private async _initialize(storedAccounts: azdata.Account[]): Promise<azdata.Account[]> {
|
||||||
const accounts: azdata.Account[] = [];
|
const accounts: azdata.Account[] = [];
|
||||||
|
console.log(`Initializing stored accounts ${JSON.stringify(accounts)}`);
|
||||||
for (let account of storedAccounts) {
|
for (let account of storedAccounts) {
|
||||||
const azureAuth = this.getAuthMethod(account);
|
const azureAuth = this.getAuthMethod(account);
|
||||||
if (!azureAuth) {
|
if (!azureAuth) {
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ export default class AccountStore implements IAccountStore {
|
|||||||
if (!accounts) {
|
if (!accounts) {
|
||||||
accounts = [];
|
accounts = [];
|
||||||
}
|
}
|
||||||
|
this.logService.debug(`Read accounts from memento ${JSON.stringify(accounts)}`);
|
||||||
// Make a deep copy of the account list to ensure that the memento list isn't obliterated
|
// Make a deep copy of the account list to ensure that the memento list isn't obliterated
|
||||||
accounts = deepClone(accounts);
|
accounts = deepClone(accounts);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user