Skip to main content

Commands and custom requests

Workspace commands advertised during initialization:

Command IDVS Code commandDescription
interlis.compileinterlis.compile.runCompile the current file, publish diagnostics, and return compiler logs.
interlis.umlinterlis.uml.showCompile & render a Mermaid UML diagram as HTML.
interlis.uml.plantinterlis.uml.plant.showCompile & render PlantUML as HTML.

Custom JSON-RPC requests handled with @JsonRequest annotations:

RequestVS Code callerDescription
interlis/exportDocxinterlis.docx.exportReturns a Base64 DOCX payload derived from the compiled model.
interlis/exportHtmlinterlis.html.showReturns rendered HTML documentation for previews.

Server-to-client notifications used by the extension:

NotificationPayloadPurpose
interlis/clearLognoneClear the shared output channel before new compiler runs.
interlis/log{ text: string }Stream ili2c logs into the IDE output view.

When building custom clients, reuse the command IDs listed above so downstream tooling stays compatible with the official VS Code extension.