diff --git a/src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts b/src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts index 416de05faea..0c8e6a589d8 100644 --- a/src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts +++ b/src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts @@ -460,11 +460,6 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo if (!this.userDataSyncWorkbenchService.authenticationProviders.length) { throw new Error(localize('no authentication providers', "No authentication providers are available.")); } - if (!this.storageService.getBoolean('sync.donotAskPreviewConfirmation', StorageScope.GLOBAL, false)) { - if (!await this.askForConfirmation()) { - return; - } - } const turnOn = await this.askToConfigure(); if (!turnOn) { return; @@ -519,26 +514,6 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo } } - private async askForConfirmation(): Promise { - const result = await this.dialogService.show( - Severity.Info, - localize('sync preview message', "Synchronizing your settings is a preview feature, please read the documentation before turning it on."), - [ - localize('turn on', "Turn On"), - localize('open doc', "Open Documentation"), - localize('cancel', "Cancel"), - ], - { - cancelId: 2 - } - ); - switch (result.choice) { - case 1: this.openerService.open(URI.parse('https://aka.ms/vscode-settings-sync-help')); return false; - case 2: return false; - } - return true; - } - private async askToConfigure(): Promise { return new Promise((c, e) => { const disposables: DisposableStore = new DisposableStore();