Skip to content

Structure tree, diagram viewer, and live docs in the IDE - #1

Merged
JonathanTurnock merged 1 commit into
mainfrom
feat/structure-diagram-docs
Jun 2, 2026
Merged

JonathanTurnock merged 1 commit into
mainfrom
feat/structure-diagram-docs

Conversation

@JonathanTurnock

Copy link
Copy Markdown
Contributor

Promotes PseudoScript from text-only editing to a visual, first-class IDE experience. Adds a PseudoScript tool window with two tabs.

Structure

  • Workspace symbol tree from pds outline, monorepo-aware — discovers every pds.toml via pds list, grouped by workspace, with C4-kind icons and flows (triggered callables) flagged.
  • Selecting a node — or right-click PseudoScript ▸ Open Diagram in the editor (resolves the symbol under the caret) — renders its fitting diagram (C4 view, or a flow's sequence) in the main editor area via a custom SVG FileEditor: JSVG vector rendering with zoom / fit / actual-size / ⌘-wheel / drag-pan, and SVG + PNG export.

Docs

  • Build & Serve runs pds doc --watch on the active file's workspace (free port), waits for the readiness banner, and previews the live, auto-reloading site in an embedded JCEF browser — with stop / reload / open-in-browser. The server is tied to the tab's lifetime; falls back to the system browser where JCEF is unavailable.

Theming

  • Diagrams follow the IDE theme via pds svg --theme light|dark, re-rendered on theme switch and shown on a theme-matched plate. Light output is unchanged (byte-identical), so the doc site and golden tests are unaffected.

Misc

  • Grey monochrome PDS icon for the tool window and menu; JSVG dependency bundled.
  • README / file-type description updated to the "pseudoprogramming" framing.

Dependencies

Requires a pds build with the new outline, svg (incl. --theme), and reused list commands (from the language repo). verifyPlugin → Compatible against IC-243.

🤖 Generated with Claude Code

Add a "PseudoScript" tool window with two tabs:

- Structure: the workspace symbol tree from `pds outline`, monorepo-aware
  (every `pds.toml` via `pds list`, grouped by workspace). Selecting a node —
  or right-click PseudoScript > Open Diagram in the editor — renders its
  fitting diagram (C4 view, or a flow's sequence) in the main editor area via
  a custom SVG FileEditor (JSVG: zoom, fit, pan, SVG/PNG export).
- Docs: build & serve the documentation site (`pds doc --watch`) and preview
  it live in an embedded JCEF browser, with stop/reload/open-in-browser and a
  free-port server tied to the tab's lifetime (falls back to the system
  browser where JCEF is unavailable).

Diagrams follow the IDE theme: `pds svg --theme light|dark`, re-rendered on
theme switch, on a theme-matched plate. Adds a grey monochrome PDS icon for
the tool window and menu, and the JSVG dependency.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@JonathanTurnock
JonathanTurnock merged commit 59cb898 into main Jun 2, 2026
2 checks passed
@JonathanTurnock
JonathanTurnock deleted the feat/structure-diagram-docs branch June 2, 2026 14:57
JonathanTurnock added a commit that referenced this pull request Jun 2, 2026
Release the structure tree, diagram viewer, theming, and live docs preview
added in #1. Adds a 0.2.0 change-notes entry.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant