Files
codegraph/src/ui/types.ts
T
Colby McHenry 64d844c938 feat: Move parsing to worker threads for smooth progress animation
Offloads tree-sitter parsing to a dedicated worker thread, keeping the main thread unblocked so shimmer progress animations render smoothly during indexing. Refactors shimmer progress renderer into separate worker for consistent 50ms animation updates. Falls back to in-process parsing when worker compilation unavailable (e.g., tests).
2026-04-04 11:36:20 -05:00

10 lines
320 B
TypeScript

/** Messages from main thread to worker */
export type ShimmerWorkerMessage =
| { type: 'update'; phase: string; phaseName: string; percent: number; count: number }
| { type: 'finish-phase' }
| { type: 'stop' };
/** Messages from worker to main thread */
export type ShimmerMainMessage =
| { type: 'stopped' };