gleam-lang/gleam

LSP: Rename modules

Open

#4,370 opened on Mar 18, 2025

View on GitHub
 (7 comments) (3 reactions) (0 assignees)Rust (21,417 stars) (960 forks)batch import
help wanted

Description

Given a file called foo.gleam, (module name foo), and lots of other modules that have import foo and also call foo.stuff().

When foo.gleam gets renamed, we can give the user a choice to auto-rename all references and imports.

We may also want to have a rename module code action when on top of a module reference or import, which would need to also rename the file.

Contributor guide

LSP: Rename modules · gleam-lang/gleam#4370 | Good First Issue