# Revert deprecate code actions on format \(\#40409\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 81425bef721bd03dc2fe89a1aee6e63adec557bc

Requested commit: 81425bef721bd03dc2fe89a1aee6e63adec557bc

Commit: 81425bef721bd03dc2fe89a1aee6e63adec557bc

Tree: 5fb61188a017ef789c40fe07d991312f78f1b0da

Author: Ben Kunkle

Committer: GitHub

## Message

```
Revert deprecate code actions on format (#40409)

Closes #40334

This reverts the change made in #39983, and includes a replacement
migration that will transform formatter settings values consisting of
only `code_action` format steps into the previously deprecated
`code_actions_on_format` in an attempt to restore the behavior to what
it was before the migration that deprecated `code_actions_on_format`.

This PR will result in a modified order in the `code_actions_on_format`
setting if it existed, however the decision was made to explicitly
ignore this for now, as this PR is primarily targeting users who have
already had the deprecation migration run, and no longer have the
`code_actions_on_format` key

Release Notes:

- Fixed an issue with a settings migration that deprecated the
`code_actions_on_format` setting. The `code_actions_on_format` setting
has been un-deprecated, and affected users will have the bad migration
rolled back with an updated migration

---------

Co-authored-by: Cole Miller <cole@zed.dev>
Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
Co-authored-by: HactarCE <6060305+HactarCE@users.noreply.github.com>
```

## Parents

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

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