227
/* Snippets removed remotely -> remove locally */
228
for (const key of snippetsMergeResult.local.removed) {
230
>
content: null,
231
>
hasConflicts: false,
232
>
localChange: Change.Deleted,
233
>
remoteChange: Change.None,
234
>
};
235
>
const localContent = localFileContent[key] ? localFileContent[key].value.toString() : null;
236
>
resourcePreviews.set(key, {
237
>
baseResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'base' }),
238
>
baseContent: baseSnippets[key] ?? null,
239
>
localResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'local' }),
240
>
fileContent: localFileContent[key],
241
>
localContent,
242
>
remoteResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'remote' }),
243
>
remoteContent: null,
244
>
previewResource: this.extUri.joinPath(this.syncPreviewFolder, key),
245
>
previewResult,
246
>
localChange: previewResult.localChange,
247
>
remoteChange: previewResult.remoteChange,
248
>
acceptedResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'accepted' })
249
>
});
250
>
}
251
252
/* Snippets added locally -> add remotely */