Merge branch 'master' into rmacfarlane/signOutDialog

This commit is contained in:
Sandeep Somavarapu
2020-04-16 13:06:09 +02:00
committed by GitHub
34 changed files with 633 additions and 343 deletions

View File

@@ -68,8 +68,14 @@ export class MainThreadAuthenticationProvider extends Disposable {
private readonly notificationService: INotificationService
) {
super();
}
this.registerCommandsAndContextMenuItems();
public async initialize(): Promise<void> {
return this.registerCommandsAndContextMenuItems();
}
public hasSessions(): boolean {
return !!this._sessions.size;
}
private manageTrustedExtensions(quickInputService: IQuickInputService, storageService: IStorageService, accountName: string) {
@@ -331,6 +337,7 @@ export class MainThreadAuthentication extends Disposable implements MainThreadAu
async $registerAuthenticationProvider(id: string, displayName: string, supportsMultipleAccounts: boolean): Promise<void> {
const provider = new MainThreadAuthenticationProvider(this._proxy, id, displayName, supportsMultipleAccounts, this.notificationService);
await provider.initialize();
this.authenticationService.registerAuthenticationProvider(id, provider);
}