Skip to content

Commit 4de7667

Browse files
author
Rachel Macfarlane
committed
When signing out of account, offer to turn off settings sync instead of showing account picker
1 parent ce60450 commit 4de7667

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -282,19 +282,11 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
282282
if (this.activeAccount) {
283283
if (event.removed.length) {
284284
const activeWasRemoved = !!event.removed.find(removed => removed === this.activeAccount!.id);
285-
286-
// If the current account was removed, check if another account can be used, otherwise offer to turn off sync
285+
// If the current account was removed, offer to turn off sync
287286
if (activeWasRemoved) {
288-
const accounts = (await this.authenticationService.getSessions(this.userDataSyncStore!.authenticationProviderId) || []);
289-
if (accounts.length) {
290-
// Show switch dialog here
291-
await this.showSwitchAccountPicker(accounts);
292-
} else {
293-
await this.turnOff();
294-
this.setActiveAccount(undefined);
295-
return;
296-
}
297-
287+
await this.turnOff();
288+
this.setActiveAccount(undefined);
289+
return;
298290
}
299291
}
300292

0 commit comments

Comments
 (0)