This project provides a language server and VS Code extension for the BBj language.
The project consists of two main parts:
bbj-vscode
– VS Code extension with BBj language server based on Langiumjava-interop
– Java executable that provides information about the Java classpath (classes, fields, methods) via a JSON-RPC connection
The easiest way is to open the project in Gitpod.
This opens a VS Code instance in your browser that automatically builds the project code. Once the terminal processes are done, go to the "Run and Debug" view and start two launch configurations:
- Run Interop Service (requires the "Debugger for Java" extension) – this starts a Java application that listens for connections from the language server.
- Alternatively, you can execute the command
./gradlew run
in thejava-interop
subfolder (works without additional VS Code extension).
- Alternatively, you can execute the command
- Run Extension – this starts a second instance of VS Code (in a new browser tab) that contains the BBj language extension and its language server.
Once the new VS Code instance is started, open a bbj file and see how the editor behaves.
If you want to test this project on your local machine, you need to install Node.js and JDK. Then execute the following commands.
- In the
bbj-vscode
subfolder:npm install
- In the
java-interop
subfolder:./gradlew assemble