An extension to support OML in VSCode-based IDEs.
1.Download the latest oml-code-<version>.vsix file from the Assets in: https://github.com/opencaesar/oml-code/releases
Drag the drop the downloaded file to the extension tab of your VS Code.
Open an OML workspace and open *.oml text editor
Run all commands in the oml-code
directory.
Make sure you have Node.js v22+ as well as a compatible
JavaScript package manager (i.e., npm
) installed.
Install the project's dependencies.
$ npm install
To run the language server, first build the parser and abstract syntax tree
(AST), found in language/generated/ast.ts
:
$ npm run langium:generate
Note: Run this command any time you change the grammar to keep the parser and AST up to date.
Then build the sources of the langauge server:
$ npm run build
Note: Run this command any time you change the the language server source (including the grammar) to keep the server up to date.