extension.js

extension.js implements the VS Code extension commands. It calls the CLI for conversion and calls the Juno bridge for live craft, Vizzy, stage, telemetry, and report operations. vscode extension

Responsibilities

AreaBehavior
ActivationRegisters all vizzycode.* commands.
CLI commandsImport XML, export code, run roundtrip.
Juno commandsConnect, browse parts, import/export from game, inspect stages.
Data exportsSave telemetry JSON, snapshot JSON, and Markdown reports.
CLI discoveryResolves bundled or configured CLI path.
Status barShows extension and Juno connection state.

Command Flow

flowchart TD
    A[VS Code command] --> B{Command type}
    B -->|Conversion| C[runCli]
    C --> D[CLI Program.cs]
    B -->|Live Juno| E[junoGet/junoPut/junoPost]
    E --> F[Juno Live Bridge]
    B -->|Report| G[buildJunoMarkdownReport]

Related notes: Component Map, 07 - VS Code Extension, CLI Program.cs, 06 - Juno Live Bridge.