src/vs/workbench/contrib/userDataSync/browser/userDataSyncConflictsView.ts/UserDataSyncConflictsViewPane/open
class UserDataSyncConflictsViewPane:	async open(conflictToOpen: IResourcePreview): Promise<void> {
		if (!this.userDataSyncService.conflicts.some(({ conflicts }) => conflicts.some(({ localResource }) => isEqual(localResource, conflictToOpen.localResource)))) {
			return;
		}

		// Open Merge Editor if Sync is enabled
		if (this.userDataSyncEnablementService.isEnabled()) {
			const remoteResourceName = localize({ key: 'remoteResourceName', comment: ['remote as in file in cloud'] }, "{0} (Remote)", basename(conflictToOpen.remoteResource));
			const localResourceName = localize('localResourceName', "{0} (Local)", basename(conflictToOpen.remoteResource));
			await this.editorService.openEditor({
				input1: { resource: conflictToOpen.remoteResource, label: localize('Theirs', 'Theirs'), description: remoteResourceName },
				input2: { resource: conflictToOpen.localResource, label: localize('Yours', 'Yours'), description: localResourceName },
				base: { resource: conflictToOpen.baseResource },
				result: { resource: conflictToOpen.previewResource },
				options: {
					preserveFocus: true,
					revealIfVisible: true,
					pinned: true,
					override: DEFAULT_EDITOR_ASSOCIATION.id
				}
			});
			return;
		}

		// Open Diff Editor if Sync is disabled
		else {
			const leftResource = conflictToOpen.remoteResource;
			const rightResource = conflictToOpen.localResource;
			const leftResourceName = localize({ key: 'leftResourceName', comment: ['remote as in file in cloud'] }, "{0} (Remote)", basename(leftResource));
			const rightResourceName = localize({ key: 'rightResourceName', comment: ['local as in file in disk'] }, "{0} (Local)", basename(rightResource));
			await this.editorService.openEditor({
				original: { resource: leftResource },
				modified: { resource: rightResource },
				label: localize('sideBySideLabels', "{0} ↔ {1}", leftResourceName, rightResourceName),
				description: localize('sideBySideDescription', "Settings Sync"),
				options: {
					preserveFocus: true,
					revealIfVisible: true,
					pinned: true,
					override: DEFAULT_EDITOR_ASSOCIATION.id
				},
			});
		}
	}