RUDRA for VS Code 🔱
Syntax highlighting and live diagnostics (parse and type errors) for .rux
files, powered by the rudra-lsp language server.
Prerequisites
- Build the RUDRA toolchain so you have the
rudra-lsp binary:
cargo build --release
# binary at target/release/rudra-lsp
- Node.js + npm (to package the extension).
- The
vsce packaging tool:
npm install -g @vscode/vsce
Install (local)
From this folder (editors/vscode):
npm install # fetch vscode-languageclient
vsce package # produces rudra-1.0.0.vsix
code --install-extension rudra-1.0.0.vsix
Then reload VS Code.
Point it at rudra-lsp
If rudra-lsp is not on your PATH, set the path in VS Code settings:
- Open Settings → search "rudra" → set Rudra: Lsp Path to the absolute path,
e.g.
/media/hdd/rudra-lang/target/release/rudra-lsp.
Or add to settings.json:
{
"rudra.lspPath": "/absolute/path/to/rudra-lsp"
}
Use
Open any .rux file. You get:
- Syntax highlighting (keywords, types, strings, functions).
- Live diagnostics — parse and type errors appear underlined as you type,
and in the Problems panel.
Quick test
Create test.rux:
fn main() {
let x: int = "oops"; // type error — should be underlined
print(x);
}
You should see an error on the assignment line.
| |