VizChat Widget PreviewLive-preview and debug VizChat widgets without leaving VS Code. Open any file inside a widget package, run VizChat: Open Widget Preview from the Command Palette, and a side panel renders that widget's demo — fully interactive, the same container it gets on the VizChat canvas. Save a source file and it recompiles and refreshes on its own. RequirementsThe extension is a thin shell around the
A minimal widget
Usage
One dev server runs per widget package and is reused; closing the preview panel shuts it down. Server logs go to the VizChat Widget Dev channel in the Output panel. Starting from a file that is not inside a widget package is reported as an error rather
than guessed at — the extension walks up looking for a How it worksThe extension does exactly two things: start a dev server process and open an
iframe pointing at it. Everything that makes the preview work — compilation, serving
build output, singleton supply, cross-widget resolution — lives in the The practical consequence: opening the same local address in a browser shows exactly the same thing. Nothing here is VS Code-only, so teammates on other editors lose no capability. On the first preview, the dev server fetches the preview UI assets from VizChat's CDN and caches them on disk; subsequent runs work offline. PrivacyThe extension itself sends no telemetry and makes no network requests. The dev server it
launches runs on LicenseProprietary — see the License tab. Free to use, including for commercial widgets you build and sell; redistribution and derivative works are not permitted. |