Skip to content

Handle file rename in .cabal file#4961

Open
VeryMilkyJoe wants to merge 3 commits into
haskell:masterfrom
VeryMilkyJoe:rename-file-cabal
Open

Handle file rename in .cabal file#4961
VeryMilkyJoe wants to merge 3 commits into
haskell:masterfrom
VeryMilkyJoe:rename-file-cabal

Conversation

@VeryMilkyJoe

@VeryMilkyJoe VeryMilkyJoe commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

On a WillRenameFile Notification, we find the responsible .cabal file for the old filepath and replace the corresponding module path with the module path for the new file name.

This is part of the implementation of #4951.

Note that this is still missing some tests.

Screencast.From.2026-06-08.10-19-12.mp4

Add handling of WillRename Notification which changes the module
declaration and all imports of the module to rename to the new name.
Add handling of WillRename Notification which changes the module
declaration and all imports of the module to rename to the new name.
On WillRename Notification, edit the responsible .cabal file to change
the module name to the new name.
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.

1 participant