Xtext-based tool support for the Metafacture Flux language
The project org.metafacture.flux.vsc provides an extension for Visual Studio Code for flux via the language server protocol (LSP). In the current state the extension supports auto completion, simple syntax highlighting and auto closing brackets and quotes. This project was created using the tutorial and the corrresponding example.
Start extension:
- Install Visual Studio Code / alternative: VS Codium
- Install Node.js (including npm)
- Checkout metafacture-flux project and change directory
git clone https://github.com/metafacture/metafacture-flux.gitcd metafacture-flux - In metafacture-flux execute:
Unix:
./gradlew installServerWindows:.\gradlew.bat installServer - In org.metafacture.flux.vsc execute (tip: if you use windows, install cygwin to execute npm commands):
npm install - Open org.metafacture.flux.vsc in Visual Studio Code
- Launch vscode extension by pressing F5 (opens new window of Visual Studio Code)
- Open new file (file-ending .flux) or open existing fix-file