Skip to content

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

Open
@matklad

Description

@matklad

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions