# Improve edit prediction example capture \(\#45536\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 07ada5846663a67945238141c7c0010ee98385c3

Requested commit: 07ada5846663a67945238141c7c0010ee98385c3

Commit: 07ada5846663a67945238141c7c0010ee98385c3

Tree: c553134ce05a1949e58254f836a9a8825c487c2f

Author: Max Brunsfeld

Committer: GitHub

## Message

```
Improve edit prediction example capture (#45536)

This PR improves the `edit prediction: Capture Example` in several ways:
* fixed bugs in how the uncommitted diff was calculated
* added a `edit_predictions.examples_dir` setting that can be set in
order to have the action automatically save examples into the given
folder
* moved the action into the `edit_predictions` crate, in preparation for
collecting this data passively from end users, when they have opted in
to data sharing, similar to what we did for Zeta 1

Release Notes:

- N/A
```

## Parents

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

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