Cache key for full-source highlights used by expanded unchanged rows.
(theme: AppTheme, file: DiffFile, text: string)
| 22 | |
| 23 | /** Cache key for full-source highlights used by expanded unchanged rows. */ |
| 24 | function buildSourceCacheKey(theme: AppTheme, file: DiffFile, text: string) { |
| 25 | return `${theme.id}:${theme.syntaxTheme ?? theme.appearance}:${file.id}:${file.path}:${file.language ?? ""}:${sourceTextFingerprint(text)}`; |
| 26 | } |
| 27 | |
| 28 | /** Resolve highlighted full-source content for expanded unchanged rows. */ |
| 29 | export function useHighlightedSource({ |
no test coverage detected