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
parent bce9a9a6f4
commit cae712e740
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 293 additions and 203 deletions

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,