You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a module A with import B. And I Copy/Paste module B and then rename the copied module I would expect that the other modules remain untouched.
Current Behavior
When renaming B copy.elm to C.elm the import in module A gets changed from import B to import C.
Possible Solution
It seems the language server still associates the copied module with the original module, which should not be the case. Also it might be good to check if the module name is valid and matches the file name before doing any refactoring.
Expected Behavior
When I have a module
A
withimport B
. And I Copy/Paste moduleB
and then rename the copied module I would expect that the other modules remain untouched.Current Behavior
When renaming
B copy.elm
toC.elm
the import in moduleA
gets changed fromimport B
toimport C
.Possible Solution
It seems the language server still associates the copied module with the original module, which should not be the case. Also it might be good to check if the module name is valid and matches the file name before doing any refactoring.
Steps to Reproduce (for bugs)
A
withimport B
B
B
B copy.elm
toC.elm
Context
This issue might be related: #298
Your Environment
The text was updated successfully, but these errors were encountered: