mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
control selecting settings service through canSwitch property
This commit is contained in:
@@ -446,8 +446,7 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
|
||||
|
||||
async switchSyncService(type: UserDataSyncStoreType): Promise<void> {
|
||||
if (!this.userDataSyncStoreManagementService.userDataSyncStore
|
||||
|| !this.userDataSyncStoreManagementService.userDataSyncStore.insidersUrl
|
||||
|| !this.userDataSyncStoreManagementService.userDataSyncStore.stableUrl) {
|
||||
|| !this.userDataSyncStoreManagementService.userDataSyncStore.canSwitch) {
|
||||
return;
|
||||
}
|
||||
await this.userDataSyncStoreManagementService.switch(type);
|
||||
|
||||
Reference in New Issue
Block a user