6 releases

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

#177 in Text editors

Download history 88/week @ 2024-08-20 258/week @ 2024-08-27 70/week @ 2024-09-03 4/week @ 2024-09-10 12/week @ 2024-09-17 7/week @ 2024-09-24 7/week @ 2024-10-01 9/week @ 2024-10-08 154/week @ 2024-10-15 14/week @ 2024-10-22 3/week @ 2024-10-29 10/week @ 2024-11-05

184 downloads per month

Custom license

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
  • 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.

  1. Navigate to the extension directory with cd editors/code.
  2. Prepare the Javascript environment with pnpm i.
  3. Build the language server with cargo build.
  4. 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

~16–27MB
~430K SLoC