mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 19:18:59 +01:00
displayName -> label, use providerIds in favor of getProviderIds, #100993
This commit is contained in:
@@ -49,7 +49,7 @@ class UserDataSyncAccount implements IUserDataSyncAccount {
|
||||
constructor(readonly authenticationProviderId: string, private readonly session: AuthenticationSession) { }
|
||||
|
||||
get sessionId(): string { return this.session.id; }
|
||||
get accountName(): string { return this.session.account.displayName; }
|
||||
get accountName(): string { return this.session.account.label; }
|
||||
get accountId(): string { return this.session.account.id; }
|
||||
get token(): string { return this.session.accessToken; }
|
||||
}
|
||||
@@ -305,7 +305,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
|
||||
if (isAuthenticationProvider(result)) {
|
||||
const session = await this.authenticationService.login(result.id, result.scopes);
|
||||
sessionId = session.id;
|
||||
accountName = session.account.displayName;
|
||||
accountName = session.account.label;
|
||||
accountId = session.account.id;
|
||||
} else {
|
||||
sessionId = result.sessionId;
|
||||
|
||||
Reference in New Issue
Block a user