6 releases
new 0.2.37 | Oct 18, 2024 |
---|---|
0.2.37-alpha.4 | Sep 2, 2024 |
0.2.37-alpha.3 | Aug 30, 2024 |
0.1.0 | Jun 17, 2024 |
#150 in Text editors
35 downloads per month
36KB
674 lines
bend-language-server
Language server for the Bend programming language based on the Language Server Protocol (LSP).
Features
The current features implemented in this language server are
- Semantic token highlighting
- Code highlighting using the Bend tree sitter grammar
- Diagnostic reporting
- Reports compilation warnings, errors, and other information
We accept contributions and feature requests!
Installation
VSCode extension
As of this alpha version, we still don't publish compiled releases of the language server, so you'll need to install the Rust toolchain to compile it. Afterwards, install the VSCode extension and open a .bend
file.
On startup, the extension will ask you if you want it to automatically install the language server executable or if you want to set it up manually with the PATH environment variable. If you choose automatically, the extension will use cargo
to install it to its local storage. If you want to install it manually, run the following command:
cargo install bend-language-server --version 0.2.37
Managing the language server manually will require you to update the language server yourself as new versions are published.
Other editors
We are still not officially supporting other editors; however, if your editor of choice has support for the Language Server Protocol (LSP), you can try plugging it and our language server together. To install the LSP-compliant language server binary, use the Cargo command from the Rust toolchain:
cargo install bend-language-server --version 0.2.37
If the toolchain is correctly installed, bend-language-server
should now be in your path.
We also have a tree-sitter grammar for syntax highlighting with configuration instructions for Neovim.
Development
Currently, the language server is only developed and tested for VSCode. Feel free to add contributions specific to other code editors!
VSCode extension
This project requires the Rust toolchain and pnpm to build.
- Navigate to the extension directory with
cd editors/code
. - Prepare the Javascript environment with
pnpm i
. - Build the language server with
cargo build
. - Open the project with VSCode. Press F5 or click Launch Client in the Debug panel.
This should result in a new VSCode window being opened with the bend-language-server
extension loaded.
Dependencies
~15–26MB
~432K SLoC