Skip to content
Unverified: This page has not yet been anchored to automated code tests.

vox-lsp API Reference (generated)

Crate: vox-lsp · Version: 0.6.0 · Target: Library (lib.rs)

Vox Language Server Protocol implementation (stdio JSON-RPC).

Language Server Protocol integration for Vox.

Shared validation helpers used by the LSP binary and MCP / orchestrator quality gates.

FeatureDefault / Enables
dbdep:vox-db, dep:vox-gamify
defaultdb
DependencyKind
vox-compilerNormal
vox-dbNormal
vox-foundationNormal
vox-gamifyNormal
vox-secretsNormal
ModuleDescription
capabilities—
code_lens—
completions—
grammar—
server—
symbols—
FunctionDescription
byte_index_to_line_colConvert UTF-8 byte index to LSP line / column (character count per line, not UTF-16 code units).
validate_documentRun 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_hirFull 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_diagnosticsBuild quick-fix [CodeAction]s from diagnostics that carry structured data.fixes (parity with the stdio LSP textDocument/codeAction handler).
word_at_positionWord 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_transcribeTrue if line contains a Speech.transcribe / Speech . transcribe call (word boundaries).
builtin_hover_markdown_in_lineMarkdown hover using the current line so transcribe only hovers in Speech.transcribe context.
builtin_hover_markdownShort markdown hovers for selected builtins (Oratio, HTTP, stdlib).