# Format streamed edits on save \(\#31623\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ccb049bd97b964eda50d5c29f2431b9387dd8e87

Requested commit: ccb049bd97b964eda50d5c29f2431b9387dd8e87

Commit: ccb049bd97b964eda50d5c29f2431b9387dd8e87

Tree: 11b8b281d5b357a5e5574f413b2574369df7998c

Author: Richard Feldman

Committer: GitHub

## Message

```
Format streamed edits on save (#31623)

Re-enables format on save for agent changes (when the user has that
enabled in settings), except differently from before:
- Now we do the format-on-save in the separate buffer the edit tool
uses, *before* the diff
- This means it never triggers separate staleness
- It has the downside that edits are now blocked on the formatter
completing, but that's true of saving in general.

Release Notes:

- N/A

---------

Co-authored-by: Agus Zubiaga <hi@aguz.me>
```

## Parents

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

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