Skip to main content

Crate vibelang_lsp

Crate vibelang_lsp 

Source
Expand description

Language Server Protocol implementation for VibeLang (core2-based).

This crate provides a full-featured LSP server for VibeLang, built on top of vibelang-core2 for modern, async validation.

§Features

  • Syntax error diagnostics (via Rhai compilation)
  • Semantic diagnostics (undefined synthdefs, voices, etc.)
  • Auto-completion for API functions, synthdefs, and stdlib imports
  • Hover documentation for API, UGens, and synthdefs
  • Go-to-definition for imports and variables
  • Signature help for function parameters
  • Document symbols (outline view)
  • Code actions (quick fixes)
  • Semantic tokens (syntax highlighting)
  • Inlay hints (inline annotations)

§Usage

ⓘ
use vibelang_lsp::run_lsp_server;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    run_lsp_server().await
}

Re-exports§

pub use server::VibeLangServer;

Modules§

analysis
Code analysis for VibeLang files.
data
Data structures and caching for the LSP.
features
LSP feature implementations.
server
LSP server implementation for VibeLang.
utils
Utility functions for the LSP server.
validation
Validation engine for VibeLang LSP.

Functions§

run_lsp_server
Run the LSP server over stdio.