From 5a61ae2f9d89320c2e91d58fc3646b5a6a88f44a Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 27 Apr 2026 22:53:34 +0300 Subject: feat: add status command --- src/api/mod.rs | 1 + src/api/schema.rs | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/api') diff --git a/src/api/mod.rs b/src/api/mod.rs index 33a3cd44..e97d94f6 100644 --- a/src/api/mod.rs +++ b/src/api/mod.rs @@ -304,6 +304,7 @@ fn handle_request(request: Request, api_tx: &ApiRequestSender) -> String { id: request.id, result: ResponseResult::Pong { version: env!("CARGO_PKG_VERSION").into(), + protocol: crate::server::protocol::PROTOCOL_VERSION, }, }) .unwrap_or_else(|_| { diff --git a/src/api/schema.rs b/src/api/schema.rs index f7665fd9..d3fd4682 100644 --- a/src/api/schema.rs +++ b/src/api/schema.rs @@ -428,6 +428,7 @@ pub struct ErrorBody { pub enum ResponseResult { Pong { version: String, + protocol: u32, }, WorkspaceInfo { workspace: WorkspaceInfo, @@ -940,6 +941,7 @@ mod tests { id: "req_1".into(), result: ResponseResult::Pong { version: "0.1.2".into(), + protocol: 2, }, }; -- cgit v1.2.3