WIP: feat(vscode): live preview — per-step diagrams synced to cursor (#42) #53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "vscode-preview"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Third VSCode subsystem, on the foundation (#44) + highlighting (#48): a cursor-synced live preview. Two phases in one vertical.
Phase 1 — evaluator, closes the first stages of #42. The evaluator now snapshots its folded state at each
stepboundary, andfold_emitemits one self-containedfoldedFormframe per step (baseline + one per panel), each taggedbeloch:step. Exact (Num), float only at the FOLD boundary. Multi-step programs likecube-root.belnow emit 4 frames with face counts growing 1→2→4→8;through.bel(no steps) stays 1 frame.Phase 2 — renderer + webview.
fold2svggainsdata-step/data-constructionhooks + a--stepselector, and overlays only auxiliary named constructions (not the ones already drawn as creases/corners). The webview is a dumb SVG display: the host renders CP + per-step folded SVGs viaresolveBeloch()+fold2svg, and the webview drives all controls by CSS/DOM — CP/folded toggle, sync on/off (off = step manually), construction selector, current-step highlight. No fold geometry client-side; re-render only on document change.No animation in this slice — all interpolation / rigid-fold rotation / per-face isometries (#31) / 3D are deferred to a future 3D-viewer slice (see #30, ADR 0015).
Built and reviewed task-by-task (each task + fix has an adversarial review in the trail).
WIP — not ready to merge:
.vsixscript + F5 launch config + README documenting both dev-host and install paths + manual smoke-test) still landing.mainseparately; needs a cleanup rebase before merge.For #42. Groundwork relates to #31.
Superseded by #60 — same work, cleanly rebased onto current main (interleaved design-doc / #55 commits dropped). Merged there.
Pull request closed