MCPcopy Create free account
hub / github.com/modem-dev/hunk / prefetchHighlightedDiff

Function prefetchHighlightedDiff

src/ui/diff/useHighlightedDiff.ts:139–141  ·  view source on GitHub ↗
({ file, theme }: { file: DiffFile; theme: AppTheme })

Source from the content-addressed store, hash-verified

137
138/** Queue syntax highlighting for one file without mounting its diff rows first. */
139export function prefetchHighlightedDiff({ file, theme }: { file: DiffFile; theme: AppTheme }) {
140 return ensureHighlightedDiffLoaded(file, theme);
141}
142
143/** Read the best already-available highlight result without starting async work during render. */
144function resolveHighlightedSnapshot({

Callers 1

DiffPaneFunction · 0.90

Calls 1

Tested by

no test coverage detected