MCPcopy Create free account
hub / github.com/21st-dev/1code / preloadDiffHighlighter

Function preloadDiffHighlighter

src/renderer/lib/themes/diff-view-highlighter.ts:285–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283 * This prevents the delay when opening the diff view for the first time
284 */
285export function preloadDiffHighlighter(): void {
286 // Start loading in background, don't block
287 getDiffHighlighter().catch((err) => {
288 console.warn("[preloadDiffHighlighter] Failed to preload:", err)
289 })
290}

Callers 1

main.tsxFile · 0.90

Calls 1

getDiffHighlighterFunction · 0.85

Tested by

no test coverage detected