dense-analysis / dense-analysis/ale

Support OrganizeImports for LSP

Open
#3,899 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.