lsp-cli 0.1.0

Command-line tool for talking to Language Server Protocol (LSP) servers from the terminal.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

// These protocol extensions are used by specific servers or by lsp-cli itself,
// so they live next to the LSP integration even though lsp-types does not define them.
pub const SERVER_STATUS_METHOD: &str = "experimental/serverStatus";
pub const STOP_METHOD: &str = "$/lsp-cli/stop";

#[derive(Debug, Default, Deserialize, Serialize)]
pub struct StopParams;

#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct ServerStatusParams {
    pub health: String,
    pub quiescent: bool,
    pub message: Option<String>,
}