ZIm/crates/language/src
Conrad Irwin ea322e1d1c
Add "code_actions_on_format" (#7860)
This lets Go programmers configure `"code_actions_on_format": {
  "source.organizeImports": true,
}` so that they don't have to manage their imports manually

I landed on `code_actions_on_format` instead of `code_actions_on_save`
(the
VSCode version of this) because I want to run these when I explicitly
format
(and not if `format_on_save` is disabled).

Co-Authored-By: Thorsten <thorsten@zed.dev>

Release Notes:

- Added `"code_actions_on_format"` to control additional formatting
steps on format/save
([#5232](https://github.com/zed-industries/zed/issues/5232)).
- Added a `"code_actions_on_format"` of `"source.organizeImports"` for
Go ([#4886](https://github.com/zed-industries/zed/issues/4886)).

Co-authored-by: Thorsten <thorsten@zed.dev>
2024-02-15 14:19:57 -07:00
..
syntax_map Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
buffer.rs Improve sorting of completion results (#7727) 2024-02-13 14:08:03 +01:00
buffer_tests.rs Cleanup logic for registering languages and grammars (#7593) 2024-02-08 16:24:49 -05:00
diagnostic_set.rs Clean up references in doc comments in language crate (#6729) 2024-01-25 16:04:58 -05:00
highlight_map.rs Docs for indent_size_for_line and co 2024-01-09 20:50:34 +01:00
language.rs Unload languages when uninstalling their extension (#7743) 2024-02-13 15:25:54 -05:00
language_registry.rs Reload extensions more robustly when manually modifying installed extensions directory (#7749) 2024-02-13 16:15:19 -08:00
language_settings.rs Add "code_actions_on_format" (#7860) 2024-02-15 14:19:57 -07:00
markdown.rs chore: Fix clippy::needless_borrow up to an editor 2024-01-21 15:03:24 +01:00
outline.rs More docs 2024-01-09 10:53:57 -08:00
proto.rs text: Wrap BufferId into a newtype 2024-01-29 20:00:47 +01:00
syntax_map.rs Unload languages when uninstalling their extension (#7743) 2024-02-13 15:25:54 -05:00