SysML v2 Language Support by Quality Connected
Language support for SysML v2 and KerML (.sysml, .kerml), from the
sysml-v2-compiler
language server:
- diagnostics: syntax errors, unresolved names and constraint violations;
- hover, go to definition (into the standard library too), find references and
rename;
- outline, workspace symbol search, and completion of names and keywords;
- syntax highlighting.
The server loads the .sysml and .kerml files under the workspace folders, so
names resolve across files; unsaved editor buffers take precedence. It skips
build output (target, build, out, dist, node_modules, dot-directories)
and loads at most 2000 files and 8 MiB. When it leaves files out it says so in
the SysML Language Server output channel.
SysML Library view
The SysML Library view in the Explorer has two parts:
- Standard Library: the library's folders and files, as the server holds
them. A file expands into its packages and definitions (not their features);
clicking one opens the file there.
- Examples: small models bundled with the extension (see
examples/).
Library files and examples open read-only, with highlighting, hover and go to
definition. Go to definition into the library opens the same documents, so a
file is never open twice.
Settings
| Setting |
|
sysml.server.path |
Path to the sysml-lsp executable. Empty uses the one bundled with the extension, then sysml-lsp on the PATH. |
The command SysML: Restart Language Server restarts the server. Its output
is in the SysML Language Server output channel.
Licence
EPL-2.0. The syntax highlighting grammars and the language configuration are
from the SysML v2 Pilot Implementation (see NOTICE in the repository).