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>
This commit is contained in:
Ben Kunkle
2025-10-16 14:11:20 -04:00
committed by GitHub
co-authored by Cole Miller Mikayla Maki HactarCE
parent 04f0805502
commit 81425bef72
10 changed files with 197 additions and 372 deletions
+6 -6
View File
@@ -49,8 +49,8 @@ You can configure Zed to format code using `eslint --fix` by running the ESLint
{
"languages": {
"JavaScript": {
"formatter": {
"code_action": "source.fixAll.eslint"
"code_actions_on_format": {
"source.fixAll.eslint": true
}
}
}
@@ -63,8 +63,8 @@ You can also only execute a single ESLint rule when using `fixAll`:
{
"languages": {
"JavaScript": {
"formatter": {
"code_action": "source.fixAll.eslint"
"code_actions_on_format": {
"source.fixAll.eslint": true
}
}
},
@@ -92,8 +92,8 @@ the formatter:
{
"languages": {
"JavaScript": {
"formatter": {
"code_action": "source.fixAll.eslint"
"code_actions_on_format": {
"source.fixAll.eslint": true
}
}
}