Remove deprecated copilot event (#18862)
`CopilotEvent` was succeeded by `InlineCompletionEvent` 5 months ago. Release Notes: - N/A
This commit is contained in:
parent
4c7a6f5e7f
commit
d295c46433
2 changed files with 0 additions and 12 deletions
|
@ -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 types
|
||||
InlineCompletion(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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue