# edit prediction: Try to expand context to parent treesitter region \(\#24186\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/cae712e7402f5dd643d2a24351c734c007dab2b6)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: cae712e7402f5dd643d2a24351c734c007dab2b6

Requested commit: cae712e7402f5dd643d2a24351c734c007dab2b6

Commit: cae712e7402f5dd643d2a24351c734c007dab2b6

Tree: 3495ea9633b2a05812db6bcf235887c8d930fe39

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
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>
```

## Parents

- [bce9a9a6f4f6dcacb90d8812c74c4f90156a375c](https://git.cafe/gitcafe/zed/commit/bce9a9a6f4f6dcacb90d8812c74c4f90156a375c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/cae712e7402f5dd643d2a24351c734c007dab2b6?format=markdown)
