mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +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);
|
||||
|
||||
@@ -42,6 +42,7 @@ class UserDataSyncStoreManagementService extends AbstractUserDataSyncStoreManage
|
||||
defaultUrl: URI.revive(userDataSyncStore.defaultUrl),
|
||||
insidersUrl: URI.revive(userDataSyncStore.insidersUrl),
|
||||
stableUrl: URI.revive(userDataSyncStore.stableUrl),
|
||||
canSwitch: userDataSyncStore.canSwitch,
|
||||
authenticationProviders: userDataSyncStore.authenticationProviders,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user