dense-analysis / dense-analysis/ale
Support OrganizeImports for LSP
Open
LSP
- Dominant language
- Vim Script
- Stars
- 14k
- Forks
- 1.5k
- Avg merge
- 17h 49m
- Merged PRs (30d)
- 1
Description
OrganizeImports only supports tsserver right now, but if an LSP server supports the `source.organizeImports` code action (it's in [the spec](https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#codeActionKind)), it could trigger that. `capabilities.codeActionProvider.codeActionKinds` in the `initialize` response should tell you if it's supported.
This is how VS Code's built-in "Organize Imports" command works.
Contributor guide
Assessment
This issue has not been assessed yet.