feat(desktop): unified diff toggle

This commit is contained in:
Adam 2025-12-31 09:23:24 -06:00
parent ebf5ad25c5
commit 2ec6a21cc0
No known key found for this signature in database
GPG key ID: 9CB48779AF150E75
9 changed files with 91 additions and 31 deletions

View file

@ -1,7 +1,7 @@
import { type FileContents, File, FileOptions, LineAnnotation } from "@pierre/diffs"
import { ComponentProps, createEffect, createMemo, splitProps } from "solid-js"
import { createDefaultOptions, styleVariables } from "../pierre"
import { workerPool } from "../pierre/worker"
import { getWorkerPool } from "../pierre/worker"
export type CodeProps<T = {}> = FileOptions<T> & {
file: FileContents
@ -21,7 +21,7 @@ export function Code<T>(props: CodeProps<T>) {
...createDefaultOptions<T>("unified"),
...others,
},
workerPool,
getWorkerPool("unified"),
),
)