Skip to main content

Crate disposition_lsp

Crate disposition_lsp 

Source
Expand description

Language server for editing disposition InputDiagram YAML.

Provides completion of YAML keys and values (struct fields, fixed enum values, and IDs already present in the document) over the Language Server Protocol, driven by an async_lsp MainLoop. Designed to compile to wasm and run in the browser alongside the disposition_playground app.

The host wires the server’s framed byte streams to the editor’s LSP client and drives server_run to completion on an async executor (e.g. wasm_bindgen_futures::spawn_local).

Re-exports§

pub use crate::language_server::DispositionLanguageServer;

Modules§

code_action
Code actions for the disposition LSP language server.
completion
Computes YAML key / value completions for an InputDiagram buffer.
language_server
The disposition LSP language server.
transport
In-memory byte-stream transport bridging a per-message LSP client to the framed byte streams an async_lsp::MainLoop reads and writes.

Functions§

server_run
Builds the language server MainLoop and drives it over the given byte streams until the client disconnects.