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:
change foo.rs to foo/mod.rs and vice verse
"inline" the module into the parent module
EDIT: to clarify, this is not remotely high-priority for us, just something where ideally we should have feature-parity with IntelliJ :)
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:
foo.rs
tofoo/mod.rs
and vice verseEDIT: to clarify, this is not remotely high-priority for us, just something where ideally we should have feature-parity with IntelliJ :)