context_server: Make notifications type safe (#32396)
Follow up to #32254 Release Notes: - N/A
This commit is contained in:
parent
3853e83da7
commit
6801b9137f
7 changed files with 67 additions and 43 deletions
|
@ -87,7 +87,7 @@ impl SlashCommand for ContextServerSlashCommand {
|
|||
let protocol = server.client().context("Context server not initialized")?;
|
||||
|
||||
let response = protocol
|
||||
.request::<context_server::types::request::CompletionComplete>(
|
||||
.request::<context_server::types::requests::CompletionComplete>(
|
||||
context_server::types::CompletionCompleteParams {
|
||||
reference: context_server::types::CompletionReference::Prompt(
|
||||
context_server::types::PromptReference {
|
||||
|
@ -145,7 +145,7 @@ impl SlashCommand for ContextServerSlashCommand {
|
|||
cx.foreground_executor().spawn(async move {
|
||||
let protocol = server.client().context("Context server not initialized")?;
|
||||
let response = protocol
|
||||
.request::<context_server::types::request::PromptsGet>(
|
||||
.request::<context_server::types::requests::PromptsGet>(
|
||||
context_server::types::PromptsGetParams {
|
||||
name: prompt_name.clone(),
|
||||
arguments: Some(prompt_args),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue