Context Servers: Protocol fixes and UI improvements (#19087)

This PR does two things. It fixes some minor inconsistencies in the
protocol. This is mostly about handling JSON RPC notifications correctly
and skipping fields when set to None.

Second part is about improving the rendering of context server commands,
by passing on the description
of the command to the slash command UI and showing the name of the
argument as a CodeLabel.

Release Notes:

- N/A
This commit is contained in:
David Soria Parra 2024-10-16 21:07:15 +01:00 committed by GitHub
parent 0e22c9f275
commit c8b6ad9666
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 152 additions and 54 deletions

View file

@ -85,7 +85,7 @@ impl ContextServer {
)?;
let protocol = crate::protocol::ModelContextProtocol::new(client);
let client_info = types::EntityInfo {
let client_info = types::Implementation {
name: "Zed".to_string(),
version: env!("CARGO_PKG_VERSION").to_string(),
};