diff --git a/crates/cloud_llm_client/src/cloud_llm_client.rs b/crates/cloud_llm_client/src/cloud_llm_client.rs index a6a73d7a1684197cc60578f7eceb25825ac88bdf..4d10d383e745877cdc093425b9a2bd04f61dac54 100644 --- a/crates/cloud_llm_client/src/cloud_llm_client.rs +++ b/crates/cloud_llm_client/src/cloud_llm_client.rs @@ -156,13 +156,12 @@ pub struct PredictEditsBody { #[derive(Debug, Clone, Serialize, Deserialize)] pub struct PredictEditsGitInfo { - /// Path within the repository that contains the input excerpt. + /// Path to the file in the repository that contains the input excerpt. #[serde(skip_serializing_if = "Option::is_none", default)] pub input_path: Option, + /// Cursor position within the file that contains the input excerpt. #[serde(skip_serializing_if = "Option::is_none", default)] pub cursor_point: Option, - #[serde(skip_serializing_if = "Option::is_none", default)] - pub cursor_offset: Option, /// SHA of git HEAD commit at time of prediction. #[serde(skip_serializing_if = "Option::is_none", default)] pub head_sha: Option, diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs index 74834a76e717d9657703ec10e2128a35879b749c..4377df1ad5dae008fc0332b2fac8bd1a47222c44 100644 --- a/crates/zeta/src/zeta.rs +++ b/crates/zeta/src/zeta.rs @@ -431,7 +431,6 @@ impl Zeta { let git_info = if matches!(can_collect_data, CanCollectData(true)) { self.gather_git_info( cursor_point.clone(), - cursor_offset, &buffer_snapshotted_at, &snapshot, project.clone(), @@ -1143,7 +1142,6 @@ and then another fn gather_git_info( &mut self, cursor_point: language::Point, - cursor_offset: usize, buffer_snapshotted_at: &Instant, snapshot: &BufferSnapshot, project: Option<&Entity>,