microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
11.12k stars 782 forks source link

Feature Request: allow Code Actions on files/directories #1239

Open matklad opened 3 years ago

matklad commented 3 years ago

At the moment, code actions are invoked for a specific position in a file. It can be useful to allow asking for code actions for a file or directory instead. For example, for VS Code this means supporting <kbd>ctrl+.</kbd> directly in the explorer.

Specific use-case: in Rust, files correspond to modules, and some module-level refactors make sense to invoke from the explorer:

EDIT: to clarify, this is not remotely high-priority for us, just something where ideally we should have feature-parity with IntelliJ :)

dbaeumer commented 3 years ago

Good suggestion!