gleam-lang/gleam

LSP: Rename modules

Closed

#4,370 opened on Mar 18, 2025

 (7 comments) (3 reactions) (0 assignees)Rust (960 forks)batch import
help wanted

Repository metrics

Stars
 (21,417 stars)
PR merge metrics
 (Avg merge 10d 19h) (69 merged PRs in 30d)

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