352
for (const key of Object.keys(localFileContent)) {
353
if (!resourcePreviews.has(key)) {
355
>
content: localFileContent[key] ? localFileContent[key].value.toString() : null,
356
>
hasConflicts: false,
357
>
localChange: Change.None,
358
>
remoteChange: Change.None
359
>
};
360
>
const localContent = localFileContent[key] ? localFileContent[key].value.toString() : null;
361
>
resourcePreviews.set(key, {
362
>
baseResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'base' }),
363
>
baseContent: baseSnippets[key] ?? null,
364
>
localResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'local' }),
365
>
fileContent: localFileContent[key] || null,
366
>
localContent,
367
>
remoteResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'remote' }),
368
>
remoteContent: remoteSnippets[key] || null,
369
>
previewResource: this.extUri.joinPath(this.syncPreviewFolder, key),
370
>
previewResult,
371
>
localChange: previewResult.localChange,
372
>
remoteChange: previewResult.remoteChange,
373
>
acceptedResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'accepted' })
374
>
});
375
>
}
376
}
377