acp: Update to 0.0.30 (#36643)
See: https://github.com/zed-industries/agent-client-protocol/pull/20 Release Notes: - N/A
This commit is contained in:
parent
8ef9ecc91f
commit
6f242772cc
8 changed files with 11 additions and 11 deletions
|
@ -975,7 +975,7 @@ async fn test_cancellation(cx: &mut TestAppContext) {
|
|||
assert!(
|
||||
matches!(
|
||||
last_event,
|
||||
Some(Ok(ThreadEvent::Stop(acp::StopReason::Canceled)))
|
||||
Some(Ok(ThreadEvent::Stop(acp::StopReason::Cancelled)))
|
||||
),
|
||||
"unexpected event {last_event:?}"
|
||||
);
|
||||
|
@ -1029,7 +1029,7 @@ async fn test_in_progress_send_canceled_by_next_send(cx: &mut TestAppContext) {
|
|||
fake_model.end_last_completion_stream();
|
||||
|
||||
let events_1 = events_1.collect::<Vec<_>>().await;
|
||||
assert_eq!(stop_events(events_1), vec![acp::StopReason::Canceled]);
|
||||
assert_eq!(stop_events(events_1), vec![acp::StopReason::Cancelled]);
|
||||
let events_2 = events_2.collect::<Vec<_>>().await;
|
||||
assert_eq!(stop_events(events_2), vec![acp::StopReason::EndTurn]);
|
||||
}
|
||||
|
|
|
@ -2248,7 +2248,7 @@ impl ThreadEventStream {
|
|||
|
||||
fn send_canceled(&self) {
|
||||
self.0
|
||||
.unbounded_send(Ok(ThreadEvent::Stop(acp::StopReason::Canceled)))
|
||||
.unbounded_send(Ok(ThreadEvent::Stop(acp::StopReason::Cancelled)))
|
||||
.ok();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue