File tree Expand file tree Collapse file tree
src/vs/platform/userDataSync/common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,8 @@ export abstract class AbstractUserDataSyncStoreManagementService extends Disposa
6565 && Object . keys ( value . authenticationProviders ) . every ( authenticationProviderId => isArray ( value ! . authenticationProviders ! [ authenticationProviderId ] . scopes ) )
6666 ) {
6767 const syncStore = value as ConfigurationSyncStore ;
68- const type : UserDataSyncStoreType | undefined = this . storageService . get ( SYNC_SERVICE_URL_TYPE , StorageScope . GLOBAL ) as UserDataSyncStoreType | undefined ;
68+ const canSwitch = ! ! syncStore . canSwitch && ! configuredStore ?. url ;
69+ const type : UserDataSyncStoreType | undefined = canSwitch ? this . storageService . get ( SYNC_SERVICE_URL_TYPE , StorageScope . GLOBAL ) as UserDataSyncStoreType : undefined ;
6970 const url = configuredStore ?. url
7071 || type === 'insiders' ? syncStore . insidersUrl
7172 : type === 'stable' ? syncStore . stableUrl
You can’t perform that action at this time.
0 commit comments