edit prediction: Try to expand context to parent treesitter region (#24186)

Also send the `speculated_output` (which is just the editable region) to
the llm backend

Closes #ISSUE

Release Notes:

- N/A

---------

Co-authored-by: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
Bennet Bo Fenner
2025-02-04 18:03:26 +01:00
committed by GitHub
co-authored by Antonio Scandurra
parent bce9a9a6f4
commit cae712e740
3 changed files with 293 additions and 203 deletions
+1
View File
@@ -39,6 +39,7 @@ pub struct PredictEditsParams {
pub outline: Option<String>,
pub input_events: String,
pub input_excerpt: String,
pub speculated_output: String,
/// Whether the user provided consent for sampling this interaction.
#[serde(default)]
pub data_collection_permission: bool,