An extension to support OML in VSCode-based IDEs.
Install nvm.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
Install npm, node, and yarn.
nvm install 12
nvm use 12
npm install -g yarn
Install vsce if you plan to package the extesnion
npm install -g vsce
git clone --recursive https://github.com/opencaesar/oml-luxor.git
cd oml-luxor
./build.sh
This will create a file, extension/oml-luxor-<version>.vsix
.
./clean.sh
Open the Extensions area of the VSCode desktop IDE and drag and drop the vsix file to install it.
Note: if a previous version of the extension was installed, uninstall it first.
Launch your repo with gitoid.io, then open the Extensions area of the web IDE and drag and drop the vsix file to install it.
Note: if a previous version of the extension was installed, uninstall it first.
See extension/src/oml-lsp-extension.ts for:
// For localhost debugging, uncomment the following:
// return this.activateLanguageClientViaSocket(
// context,
// clientOptions,
// OmlLspVscodeExtension.doRegistrations
// );
// For localhost debugging, comment the following:
return this.activateLanguageClientViaExecutable(
context,
clientOptions,
OmlLspVscodeExtension.doRegistrations
);
For debugging where the oml-server is started separately via io.opencaesar.oml.dsl.ide.launch.OmlRunSocketServer
:
// For localhost debugging, uncomment the following:
return this.activateLanguageClientViaSocket(
context,
clientOptions,
OmlLspVscodeExtension.doRegistrations
);
// For localhost debugging, comment the following:
// return this.activateLanguageClientViaExecutable(
// context,
// clientOptions,
// OmlLspVscodeExtension.doRegistrations
// );