{#if path} {@const filePatchPromise = cachedGetDiffText(rid, base, head, 3, path)} {#await filePatchPromise}
Loading code…
{:then filePatch}
{path}
{#each threads as thread (thread.root.id)} {@const location = thread.root.location} {#if location} {@const range = lineRangeOf(location)} {@const slice = range && sliceForRange(filePatch, range.side, range.start, range.end)} {#if slice}
{:else}
Code unavailable for {location.path}
{/if} {/if} {/each}
{/await} {/if}