Skip to content

LSP code action to create unknown module #4894

@tarkah

Description

@tarkah

It'd be nice if there was a way to create unknown modules for the current package via LSP code actions. Since gleam doesn't have explicitly defined module declarations (like in Rust with mod foo.rs), it'd make sense for this code action to be available on the import declaration, along with its corresponding "unkown module" diagnostic

An initial implementation has been drafted here: #4888

Open questions:

  • Should we allow creating modules anywhere in the current project or only direct submodules of the current module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions