Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LSP: Rename modules #4370

Open
nadavhames opened this issue Mar 18, 2025 · 3 comments
Open

LSP: Rename modules #4370

nadavhames opened this issue Mar 18, 2025 · 3 comments
Labels
help wanted Contributions encouraged priority:medium

Comments

@nadavhames
Copy link

nadavhames commented Mar 18, 2025

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.

@inoas
Copy link
Contributor

inoas commented Mar 18, 2025

Is file renaming possible via the LSP?
If yes, this would be a real boost IMHO.

@GearsDatapacks
Copy link
Member

Yep, this is definitely possible

@lpil
Copy link
Member

lpil commented Mar 19, 2025

Let's do it!

@lpil lpil added help wanted Contributions encouraged priority:medium labels Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Contributions encouraged priority:medium
Projects
None yet
Development

No branches or pull requests

4 participants