202
/* Snippets updated remotely -> update locally */
203
for (const key of Object.keys(snippetsMergeResult.local.updated)) {
205
>
content: snippetsMergeResult.local.updated[key],
206
>
hasConflicts: false,
207
>
localChange: Change.Modified,
208
>
remoteChange: Change.None,
209
>
};
210
>
const localContent = localFileContent[key] ? localFileContent[key].value.toString() : null;
211
>
resourcePreviews.set(key, {
212
>
baseResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'base' }),
213
>
baseContent: baseSnippets[key] ?? null,
214
>
localResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'local' }),
215
>
fileContent: localFileContent[key],
216
>
localContent,
217
>
remoteResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'remote' }),
218
>
remoteContent: remoteSnippets[key],
219
>
previewResource: this.extUri.joinPath(this.syncPreviewFolder, key),
220
>
previewResult,
221
>
localChange: previewResult.localChange,
222
>
remoteChange: previewResult.remoteChange,
223
>
acceptedResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'accepted' })
224
>
});
225
>
}
226
227
/* Snippets removed remotely -> remove locally */