Skip to content

Commit 2832fc3

Browse files
committed
do not show the merged remote content
1 parent 1f82f44 commit 2832fc3

2 files changed

Lines changed: 4 additions & 15 deletions

File tree

src/vs/platform/userDataSync/common/keybindingsSync.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,8 @@ export class KeybindingsSynchroniser extends AbstractSynchroniser implements IUs
240240
}
241241

242242
async getRemoteContent(): Promise<string | null> {
243-
let content: string | null | undefined = null;
244-
if (this.syncPreviewResultPromise) {
245-
const preview = await this.syncPreviewResultPromise;
246-
content = preview.remoteUserData?.content;
247-
} else {
248-
const remoteUserData = await this.getRemoteUserData();
249-
content = remoteUserData.content;
250-
}
251-
return content ? this.getKeybindingsContentFromSyncContent(content) : null;
243+
const remoteUserData = await this.getRemoteUserData();
244+
return remoteUserData.content;
252245
}
253246

254247
async resetLocal(): Promise<void> {

src/vs/platform/userDataSync/common/settingsSync.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,8 @@ export class SettingsSynchroniser extends AbstractSynchroniser implements ISetti
240240
}
241241

242242
async getRemoteContent(): Promise<string | null> {
243-
if (this.syncPreviewResultPromise) {
244-
const preview = await this.syncPreviewResultPromise;
245-
return preview.remoteContent;
246-
}
247-
const remoteUserData = this.getRemoteUserData();
248-
return (await remoteUserData).content;
243+
const remoteUserData = await this.getRemoteUserData();
244+
return remoteUserData.content;
249245
}
250246

251247
async resolveConflicts(resolvedConflicts: { key: string, value: any | undefined }[]): Promise<void> {

0 commit comments

Comments
 (0)