106
107
if (remoteContent) {
108
>
let localContent: string = fileContent ? fileContent.value.toString() : '[]';
keybindingsSync.ts
109
>
localContent = localContent || '[]';
110
>
if (this.hasErrors(localContent, true)) {
111
throw new UserDataSyncError(localize('errorInvalidSettings', "Unable to sync keybindings because the content in the file is not valid. Please open the file and correct it."), UserDataSyncErrorCode.LocalInvalidContent, this.resource);
112
}
114
>
if (!lastSyncContent // First time sync
115
|| lastSyncContent !== localContent // Local has forwarded
116
|| lastSyncContent !== remoteContent // Remote has forwarded
118
this.logService.trace(`${this.syncResourceLogLabel}: Merging remote keybindings with local keybindings...`);
119
const result = await merge(localContent, remoteContent, lastSyncContent, formattingOptions, this.userDataSyncUtilService);