jjpwrgem-lsp 0.1.1

JSON language server with rich errors
Documentation
mod backend;
mod range;

use backend::Backend;
use tower_lsp_server::{LspService, Server};

pub async fn run() {
    let stdin = tokio::io::stdin();
    let stdout = tokio::io::stdout();

    let (service, socket) = LspService::new(Backend::new);

    Server::new(stdin, stdout, socket).serve(service).await;
}

pub fn run_blocking() {
    tokio::runtime::Builder::new_current_thread()
        .enable_all()
        .build()
        .expect("failed to build tokio runtime")
        .block_on(run());
}