Skip to content

Commit 3d99a14

Browse files
committed
rollback changes to conflicts handling
1 parent 974b450 commit 3d99a14

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/vs/workbench/contrib/userDataSync/browser/userDataSync.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,14 +212,14 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
212212
}
213213
},
214214
{
215-
label: localize('accept merges', "Accept Merges"),
215+
label: localize('accept local', "Accept Local"),
216216
run: () => {
217217
this.telemetryService.publicLog2<{ source: string, action: string }, SyncConflictsClassification>('sync/handleConflicts', { source: syncResource, action: 'acceptLocal' });
218218
this.acceptLocal(syncResource, conflicts);
219219
}
220220
},
221221
{
222-
label: localize('show merges', "Show Merges"),
222+
label: localize('show conflicts', "Show Conflicts"),
223223
run: () => {
224224
this.telemetryService.publicLog2<{ source: string, action?: string }, SyncConflictsClassification>('sync/showConflicts', { source: syncResource });
225225
this.handleConflicts([syncResource, conflicts]);
@@ -266,7 +266,7 @@ export class UserDataSyncWorkbenchContribution extends Disposable implements IWo
266266
private async acceptLocal(syncResource: SyncResource, conflicts: IResourcePreview[]): Promise<void> {
267267
try {
268268
for (const conflict of conflicts) {
269-
await this.userDataSyncService.accept(syncResource, conflict.previewResource, undefined, this.userDataAutoSyncService.isEnabled());
269+
await this.userDataSyncService.accept(syncResource, conflict.localResource, undefined, this.userDataAutoSyncService.isEnabled());
270270
}
271271
} catch (e) {
272272
this.notificationService.error(e);

0 commit comments

Comments
 (0)