Skip to content

Draft: Cabal rename module#4861

Draft
VeryMilkyJoe wants to merge 3 commits intohaskell:masterfrom
VeryMilkyJoe:cabal-rename-module
Draft

Draft: Cabal rename module#4861
VeryMilkyJoe wants to merge 3 commits intohaskell:masterfrom
VeryMilkyJoe:cabal-rename-module

Conversation

@VeryMilkyJoe
Copy link
Collaborator

@VeryMilkyJoe VeryMilkyJoe commented Mar 3, 2026

Adds handling of renaming of modules.

The plan is for a rename notification to trigger a rename of the respective module in the cabal file, the module's header and all relevant imports.
Also a complete session reloading is triggered after a rename action has taken place.

All of this works as of now but i need to split up the implementation to the relevant places in HLS, right now it all takes place in the cabal plugin, while ideally only the renaming in the .cabal file should.

Closes #713

Working rename of module in cabal file.
Work in progress rename of module in module declaration.
Todo: Rename in existing imports.
Refactor and document rename module
@fendor fendor marked this pull request as draft March 3, 2026 15:06
@fendor fendor changed the title DRAFT: Cabal rename module Draft: Cabal rename module Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add garbage collect of diagnostics

1 participant