Expand description
Language Server Protocol server for tpt-telos (Phase 4).
Provides real-time, in-editor feedback for .telos files:
- diagnostics – parse errors and unsatisfied mathematical contracts, published on open/change/save (ejected functions are reported as trusted),
- hover – a function’s signature, routing target, contract, and verification status,
- custom requests –
telos/verify(a verification summary) andtelos/eject(a preview of the ejected raw Rust/Go with contract guards).
The protocol layer speaks JSON-RPC 2.0 over stdio with Content-Length
framing. The Server message handler is decoupled from I/O so it can be
unit-tested by feeding it JSON values directly.
Re-exports§
pub use analysis::analyze;pub use analysis::build_index;pub use analysis::code_actions;pub use analysis::completion_items;pub use analysis::definition_at;pub use analysis::diagnostics;pub use analysis::format_source;pub use analysis::hover_markdown;pub use analysis::inlay_hints;pub use analysis::references_at;pub use analysis::word_at_pos;pub use analysis::Diagnostic;pub use analysis::InlayHint;pub use analysis::Location;pub use analysis::QuickFix;pub use analysis::SymKind;pub use analysis::Symbol;pub use analysis::SymbolIndex;
Modules§
- analysis
- Source analysis for the tpt-telos language server.
Structs§
- Server
- The language server state: open documents and lifecycle flags.
Functions§
- run_
stdio - Run the language server over stdio until the client sends
exit.