src/vs/workbench/services/userDataSync/browser/userDataSyncWorkbenchService.ts/UserDataSyncWorkbenchService/handleConflictsWhileTurningOn
class UserDataSyncWorkbenchService:	private async handleConflictsWhileTurningOn(token: CancellationToken): Promise<void> {
		const result = await this.dialogService.show(
			Severity.Warning,
			localize('conflicts detected', "Conflicts Detected"),
			[
				localize('show conflicts', "Show Conflicts"),
				localize('replace local', "Replace Local"),
				localize('replace remote', "Replace Remote"),
				localize('cancel', "Cancel"),
			],
			{
				detail: localize('resolve', "Please resolve conflicts to turn on..."),
				cancelId: 3
			}
		);
		if (result.choice === 0) {
			const waitUntilConflictsAreResolvedPromise = raceCancellationError(Event.toPromise(Event.filter(this.userDataSyncService.onDidChangeConflicts, conficts => conficts.length === 0)), token);
			await this.showConflicts(this.userDataSyncService.conflicts[0]?.conflicts[0]);
			await waitUntilConflictsAreResolvedPromise;
		} else if (result.choice === 1 || result.choice === 2) {
			for (const conflict of this.userDataSyncService.conflicts) {
				for (const preview of conflict.conflicts) {
					await this.accept({ syncResource: conflict.syncResource, profile: conflict.profile }, result.choice === 1 ? preview.remoteResource : preview.localResource, undefined, { force: true });
				}
			}
		} else {
			throw new CancellationError();
		}
	}