This commit is contained in:
Sandeep Somavarapu
2020-09-02 18:45:59 +02:00
parent 1fb3a59b85
commit f063ff93f4
2 changed files with 7 additions and 1 deletions

View File

@@ -246,6 +246,9 @@ export class UserDataSyncWorkbenchService extends Disposable implements IUserDat
}
async turnOn(): Promise<void> {
if (!this.authenticationProviders.length) {
throw new Error(localize('no authentication providers', "Settings sync cannot be turned on because there are no authentication providers available."));
}
if (this.userDataAutoSyncService.isEnabled()) {
return;
}