We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a1f167 commit 0e5a5fbCopy full SHA for 0e5a5fb
1 file changed
src/vs/workbench/contrib/userDataSync/browser/userDataSyncAuthentication.ts
@@ -97,16 +97,16 @@ export class UserDataSyncAuthentication extends Disposable implements IUserDataS
97
}
98
99
async initializeActiveAccount(): Promise<void> {
100
- if (!this.userDataSyncEnablementService.isEnabled()) {
101
- return;
102
- }
103
-
104
const sessions = await this.authenticationService.getSessions(this._authenticationProviderId);
105
// Auth provider has not yet been registered
106
if (!sessions) {
107
return;
108
109
+ if (!this.userDataSyncEnablementService.isEnabled()) {
+ this.setActiveAccount(undefined);
+ }
+
110
if (sessions.length === 0) {
111
await this.setActiveAccount(undefined);
112
0 commit comments