adam_lsp/lib.rs
1//! # adam-lsp
2//!
3//! A [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) server
4//! for `adam-lang`, built on [`lsp-server`](https://docs.rs/lsp-server) + `lsp-types`. Surfaces
5//! `adam-lang`'s recovered syntax errors and [`adam_lang::check_sheet`]'s type diagnostics as
6//! `textDocument/publishDiagnostics`.
7//!
8//! # Example
9//!
10//! ```rust,no_run
11//! fn main() -> anyhow::Result<()> {
12//! adam_lsp::run()
13//! }
14//! ```
15
16pub mod diagnostics;
17mod dispatch;
18
19pub use dispatch::{run, serve};