A Thrift language server.
This project contains two programs:
- Rust binary: A language server for Thrift.
- VS Code extension: A VS Code extension for Thrift. This extension uses the WASM output of the Rust library.
- semantic syntax highlighting.
- go to definition.
- diagnostics.
- completion.
- Cargo installed (see here).
- Node.js installed (optional, for building the VS Code extension).
- Clone and Build
Now you can find the binary in
git clone https://github.com/ocfbnj/thrift-ls.git cd thrift-ls cargo build --release
./target/release/thrift-ls
.
-
Install wasm-pack and wasm-bindgen-cli
cargo install wasm-pack wasm-bindgen-cli
-
Install vsce
npm install -g @vscode/vsce
-
Build the VS Code extension
cd editors/code npm install npm run compile vsce package
Now you can find the VS Code extension in
./thrift-ls-x.x.x.vsix
.