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
dispositionLSP language server. - completion
- Computes YAML key / value completions for an
InputDiagrambuffer. - language_
server - The
dispositionLSP language server. - transport
- In-memory byte-stream transport bridging a per-message LSP client to the
framed byte streams an
async_lsp::MainLoopreads and writes.
Functions§
- server_
run - Builds the language server
MainLoopand drives it over the given byte streams until the client disconnects.