# Fix code action formatters creating separate transaction \(\#26311\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 274124256d7642dc05fffad67ffdbc3dc25be773

Requested commit: 274124256d7642dc05fffad67ffdbc3dc25be773

Commit: 274124256d7642dc05fffad67ffdbc3dc25be773

Tree: ee45d59c1857f27fd76458f0deaa7fd8365433d1

Author: Ben Kunkle

Committer: GitHub

## Message

```
Fix code action formatters creating separate transaction (#26311)

Closes #24588
Closes #25419

Restructures `LspStore.format_local` a decent bit in order to make how
the transaction history is preserved more clear, and in doing so fix
various bugs with how the transaction history is handled during a format
request (especially when formatting in remote dev)

Release Notes:

- Fixed an issue that prevented formatting from working when working
with remote dev
- Fixed an issue when using code actions as a format step where the
edits made by the code actions would not be grouped with the other
format edits in the undo history
```

## Parents

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

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