377
for (const key of Object.keys(localFileContent)) {
378
if (!resourcePreviews.has(key)) {
380
>
content: localFileContent[key] ? localFileContent[key].value.toString() : null,
381
>
hasConflicts: false,
382
>
localChange: Change.None,
383
>
remoteChange: Change.None
384
>
};
385
>
const localContent = localFileContent[key] ? localFileContent[key].value.toString() : null;
386
>
resourcePreviews.set(key, {
387
>
baseResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'base' }),
388
>
baseContent: base[key] ?? null,
389
>
localResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'local' }),
390
>
fileContent: localFileContent[key] || null,
391
>
localContent,
392
>
remoteResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'remote' }),
393
>
remoteContent: remote[key] || null,
394
>
previewResource: this.extUri.joinPath(this.syncPreviewFolder, key),
395
>
previewResult,
396
>
localChange: previewResult.localChange,
397
>
remoteChange: previewResult.remoteChange,
398
>
acceptedResource: this.extUri.joinPath(this.syncPreviewFolder, key).with({ scheme: USER_DATA_SYNC_SCHEME, authority: 'accepted' })
399
>
});
400
>
}
401
}
402