Skip to content

Allow creation (or more feedback) when attempting to create a nested module #15055

@schneems

Description

@schneems

Currently you can use quickfix to create a module file:

Screenshot 2023-06-14 at 4 13 51 PM

But not if there are nested modules:

Screenshot 2023-06-14 at 4 15 22 PM

It would be great to be able to either create the whole chain or if it's too ambiguous maybe give some feedback (somehow?) like "The lol module does not exist. Cannot create lol::haha. Please create lol before creating lol::haha"

This came up in a conversation on my blog post that uses rust-analyzer to teach how the module system interacts with files https://lobste.rs/s/e3lj0p/it_s_dangerous_go_alone_pub_mod_use_this_rs#c_7kz26f.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-featureCategory: feature request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions