You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#30 shipped with the issue's documented fallback because zed_extension_api 0.7.0 has no WebView/panel API — visual extensions are still an open RFC: zed-industries/zed#53403 (verified against the crate source at implementation time).
Current state (fallback, working today): render/export task templates running the CLI (byte-identical to c4drill <file>), drill-through via the SVG's own xlink:href navigation, live error state from LSP diagnostics.
When the API lands
Add a WebView panel rendering the SVG from c4drill/renderDiagram (the wire shape is already documented in internal/lsp — RenderDiagramParams/RenderDiagramResult — and the intended wiring is sketched in zed-extension/README.md).
Intercept the SVG's internal drill-down links (relative .svg URLs encoding the target unit path via ComputeExploreURL) → re-issue c4drill/renderDiagram for that path; breadcrumbs; external http(s) → system browser.
Parse/validate failures render CLI-identical messages instead of a stale diagram.
Acceptance
Preview panel parity with the VS Code extension's webview: auto-refresh, drill-through, breadcrumbs, controls (expanded set, legend), error states.
Update zed-extension/README.md to move the preview from "fallback" to first-class.
Follow-up from #30.
#30 shipped with the issue's documented fallback because
zed_extension_api0.7.0 has no WebView/panel API — visual extensions are still an open RFC: zed-industries/zed#53403 (verified against the crate source at implementation time).Current state (fallback, working today): render/export task templates running the CLI (byte-identical to
c4drill <file>), drill-through via the SVG's ownxlink:hrefnavigation, live error state from LSP diagnostics.When the API lands
c4drill/renderDiagram(the wire shape is already documented ininternal/lsp—RenderDiagramParams/RenderDiagramResult— and the intended wiring is sketched inzed-extension/README.md)..svgURLs encoding the target unit path viaComputeExploreURL) → re-issuec4drill/renderDiagramfor that path; breadcrumbs; external http(s) → system browser.Acceptance
zed-extension/README.mdto move the preview from "fallback" to first-class.