Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove deprecated copilot event (#18862)
Joseph T. Lyonsd295c4643367
diff --git a/crates/collab/src/api/events.rs b/crates/collab/src/api/events.rsindex f5cd1c00eae..5d40c59daf5 100644--- a/crates/collab/src/api/events.rs+++ b/crates/collab/src/api/events.rs@@ -429,8 +429,6 @@ pub async fn post_events(country_code.clone(),checksum_matched,)),- // Needed for clients sending old copilot_event types- Event::Copilot(_) => {}Event::InlineCompletion(event) => {to_upload.inline_completion_eventsdiff --git a/crates/telemetry_events/src/telemetry_events.rs b/crates/telemetry_events/src/telemetry_events.rsindex a42b8cc8b5d..32cb377ed61 100644--- a/crates/telemetry_events/src/telemetry_events.rs+++ b/crates/telemetry_events/src/telemetry_events.rs@@ -91,7 +91,6 @@ impl Display for AssistantPhase {#[serde(tag = "type")]pub enum Event {Editor(EditorEvent),- Copilot(CopilotEvent), // Needed for clients sending old copilot_event typesInlineCompletion(InlineCompletionEvent),Call(CallEvent),Assistant(AssistantEvent),@@ -121,15 +120,6 @@ pub struct EditorEvent {pub is_via_ssh: bool,}-/// Deprecated since Zed v0.137.0 (2024-05-29). Replaced by InlineCompletionEvent.-// Needed for clients sending old copilot_event types-#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]-pub struct CopilotEvent {- pub suggestion_id: Option<String>,- pub suggestion_accepted: bool,- pub file_extension: Option<String>,-}-#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]pub struct InlineCompletionEvent {/// Provider of the completion suggestion (e.g. copilot, supermaven)