File tree Expand file tree Collapse file tree
src/vs/workbench/contrib/userDataSync/browser Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments