You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow textDocument/didChange notification to be synchronous
Add code actions on save
* Add code-actions-on-save config
* Match VS Code config to allow future flexibility
* Refactor lsp commands to allow for code reuse
* Attempt code actions for all language servers for the document
* Add lsp specific integration tests
* Update documentation in book
* Canonicalize path argument when retrieving documents by path
* Resolves issue when running lsp integration tests in windows
commands: Add no-code-actions flag to write and write-all
Same as with auto-format, auto save will not trigger code actions
Co-authored-by: Jonatan Pettersson <jonatan.pettersson@proton.me>
Copy file name to clipboardExpand all lines: book/src/languages.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,7 @@ These configuration keys are available:
75
75
|`workspace-lsp-roots`| Directories relative to the workspace root that are treated as LSP roots. Should only be set in `.helix/config.toml`. Overwrites the setting of the same name in `config.toml` if set. |
76
76
| `persistent-diagnostic-sources` | An array of LSP diagnostic sources assumed unchanged when the language server resends the same set of diagnostics. Helix can track the position for these diagnostics internally instead. Useful for diagnostics that are recomputed on save.
77
77
|`rainbow-brackets`| Overrides the `editor.rainbow-brackets` config key for the language |
78
+
|`code-actions-on-save`| List of LSP code actions to be run in order on save, for example `[{ code-action = "source.organizeImports", enabled = true }]`|
0 commit comments