vox-lsp API Reference (generated)
vox-lsp
Section titled “vox-lsp”Crate: vox-lsp · Version: 0.6.0 · Target: Library (lib.rs)
Vox Language Server Protocol implementation (stdio JSON-RPC).
Crate Overview
Section titled “Crate Overview”Language Server Protocol integration for Vox.
Shared validation helpers used by the LSP binary and MCP / orchestrator quality gates.
Features
Section titled “Features”| Feature | Default / Enables |
|---|---|
db | dep:vox-db, dep:vox-gamify |
default | db |
Workspace Dependencies
Section titled “Workspace Dependencies”| Dependency | Kind |
|---|---|
vox-compiler | Normal |
vox-db | Normal |
vox-foundation | Normal |
vox-gamify | Normal |
vox-secrets | Normal |
Public API Surface
Section titled “Public API Surface”Modules
Section titled “Modules”| Module | Description |
|---|---|
capabilities | — |
code_lens | — |
completions | — |
grammar | — |
server | — |
symbols | — |
Functions
Section titled “Functions”| Function | Description |
|---|---|
byte_index_to_line_col | Convert UTF-8 byte index to LSP line / column (character count per line, not UTF-16 code units). |
validate_document | Run lexer → parser → typecheck and return LSP diagnostics (no side effects). Note: This does not run HIR structural validation. For parity with the CLI frontend (run_frontend_str), use [validate_document_with_hir]. |
validate_document_with_hir | Full frontend validation: lexer → parser → typecheck → HIR lower → HIR validate. Matches the diagnostic shape produced by vox-cli run_frontend_str for type/HIR issues (parse errors are always surfaced as errors). |
quickfixes_for_diagnostics | Build quick-fix [CodeAction]s from diagnostics that carry structured data.fixes (parity with the stdio LSP textDocument/codeAction handler). |
word_at_position | Word at LSP (line, character) using 0-based lines and character = column in Unicode scalars (same convention as [byte_index_to_line_col]). |
line_has_speech_transcribe | True if line contains a Speech.transcribe / Speech . transcribe call (word boundaries). |
builtin_hover_markdown_in_line | Markdown hover using the current line so transcribe only hovers in Speech.transcribe context. |
builtin_hover_markdown | Short markdown hovers for selected builtins (Oratio, HTTP, stdlib). |