feat(vscode): live preview — per-step diagrams synced to cursor (#42) #60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "vscode-preview-clean"
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 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.cube-root.belemits 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.Includes dogfood packaging: a
.vsixpackage/dogfoodscript, an F5 launch config, and a README documenting both the dev-host and installed paths.No animation in this slice — all interpolation / rigid-fold rotation / per-face isometries / 3D are deferred to a future 3D-viewer slice (see #30, ADR 0015). Per-face isometry emission (#31/#55) lands separately on top of this.
Dogfooded end-to-end (preview loads, follows the cursor). Two findings from that session: the LSP client's error dialog on every
.belopen is fixed here (#58); making the sync line-aware is tracked for later (#59).Built and reviewed task-by-task (six tasks, each with an adversarial review). Supersedes the WIP PR #53 (this branch is the same work, cleanly rebased onto current
mainwith the interleaved design-doc / #55 commits dropped).For #42.
moving) in the LSP #64