sbdl README
System Behaviour Description Language extension for Visual Studio Code.
Checkout SBDL.dev for more information.
Features
- Syntax highlighting for SBDL, in
.sbdl files and embedded in other languages
- Language server: diagnostics, go to definition, find references, hover, outline, and
completion of element types, properties, relation targets and cross-references
- Snippets for statements, element types, FMEA chains, directives and references
- Model Explorer in the side bar: the whole compiled model, including what other files
contribute, by type, hierarchy or file; relations both ways, quick filter, follow cursor
- Live Diagram beside the editor, re-rendered on every save, with zoom and pan, rooted at a
single element from the explorer, a switch between rendering backends, a view of what the
renderer produced (SVG, or PlantUML source), and click an element to jump to its definition
- Element matrix and FMEA table as sortable, filterable tables with resizable columns,
optional vertical column headers, and identifiers that click through to their definition
- Restart Language Server from the palette, the SBDL menu, or by clicking the
sbdl status bar
item when it shows the server has stopped
- Verify Traces: check a run's logs against the model's functions and state machine, as a table
of steps with the element, the message, the state the machine reached and the log line; click an
identifier to open its definition, click the log cell to open that line, and filter to the
divergences
- Table Designer: pick rows, columns or two axes of a relation matrix from the compiled
model and get a table as CSV, Markdown or HTML; it writes a Jinja2 template you can save
and run again in a document build
- Compile dialogue: mode, filters, switches and configuration in one form, showing the
command line it builds
- Every compiler mode, including any added by a newer compiler, in the actions menu
- Compiler install and update, manual and configuration viewers, a shortcut to the extension's
own settings, and a status item carrying the language-server state
Requirements
The SBDL compiler must be installed: pip install sbdl, or Install Compiler from the
extension's menu. Diagrams need PlantUML, locally or through a rendering server.
Extension Settings
Compiler command, diagram format, language-server behaviour and remote rendering are under
File -> Preferences -> Settings -> Extensions -> SBDL.
Release Notes
1.11
Table Designer: custom tables and relation matrices built from the compiled model, rendered
through the compiler's own template:fill mode and saveable as a Jinja2 template. Matrices open
with vertical column headers, and the table view no longer dims the row shading of empty cells.
1.10
Model Explorer side bar, Live Diagram with zoom and pan, sortable and filterable tables for
the element matrix and FMEA output, compile dialogue, automatic discovery of the compiler's
operating modes, completion and snippets, and a status item for the language server.
1.8.4
Add support for formal syntax and remote PlantUML rendering
1.8.1
Add support for SBDL Language Server Protocol
1.7.6
Add actions menu for active file
1.0.0
Support for self update, compiler update and remote compiler commands
0.5.0
Addition of Explorer context menu, allowing quick execution of common
compilation commands and diagram generation.
0.3.0
Relatively mature support for syntax highlighting of DSL version 24.06.
0.1.0
Added basic syntax highlighting support.
| |