({ file, theme }: { file: DiffFile; theme: AppTheme })
| 137 | |
| 138 | /** Queue syntax highlighting for one file without mounting its diff rows first. */ |
| 139 | export 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. */ |
| 144 | function resolveHighlightedSnapshot({ |
no test coverage detected