Fix Account Dialog with Multiple Providers (#21836)

* fix uncaught error in showSplitView

* fixed bugs around account dialog with multiple providers

* cleanup

* fix index out of bounds error

* Fire account list update after removing provider, other pr fixes
This commit is contained in:
Christopher Suh
2023-02-07 15:00:47 -08:00
committed by GitHub
parent 61ddf297f9
commit 7150257218
2 changed files with 38 additions and 12 deletions

View File

@@ -465,6 +465,8 @@ export class AccountManagementService implements IAccountManagementService {
}
public unregisterProvider(providerMetadata: azdata.AccountProviderMetadata): void {
const p = this._providers[providerMetadata.id];
this.fireAccountListUpdate(p, false);
// Delete this account provider
delete this._providers[providerMetadata.id];