lex-lsp 0.7.0

Language Server Protocol implementation for the lex format
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::process::{Command, Stdio};

#[test]
fn lex_lsp_binary_starts_and_stops() {
    let exe = env!("CARGO_BIN_EXE_lex-lsp");
    let mut child = Command::new(exe)
        .stdin(Stdio::piped())
        .stdout(Stdio::piped())
        .stderr(Stdio::piped())
        .spawn()
        .expect("failed to start lex-lsp binary");

    // Immediately terminate the server; we only need to ensure it starts.
    child.kill().expect("failed to stop lex-lsp binary");
    let _ = child.wait();
}