mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-25 09:35:37 -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[]> {
|
||||
const accounts: azdata.Account[] = [];
|
||||
console.log(`Initializing stored accounts ${JSON.stringify(accounts)}`);
|
||||
for (let account of storedAccounts) {
|
||||
const azureAuth = this.getAuthMethod(account);
|
||||
if (!azureAuth) {
|
||||
|
||||
@@ -206,7 +206,7 @@ export default class AccountStore implements IAccountStore {
|
||||
if (!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
|
||||
accounts = deepClone(accounts);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user