Global rename refactoring doesn't work on closed files
// file a
class Y extends T
// file b
class T
When one renames class T while file
a
is not opened in another editor the rename doesn't work on file a
. It doesn't matter if both files are in the same package or not. Neither does it matter if T is a class or a trait. The rename only works if both files are opened.
Leave a comment
on 2014-04-06 10:27 *
By Simon Schäfer
Summary changed from Global rename refactoring doesn't work on a trait to Global rename refactoring doesn't work on closed files
Description changed from
// file a
class... to
// file a
class...
Sounds like a problem with the index... I really wish there were a proper index in the IDE (scala-search). Thank you for reporting!
Ticket assignment reverted due to inactivity.
Also apply refactoring to files not currently open in the editor
`TextFileChange.LEAVE_DIRTY` causes changes to files that are not currently open
in the editor to be silently ignored.
`TextFileChange.KEEP_SAVE_STATE` seems more appropriate if the flag `saveAfter` is
set anyway.
Fixes #1002079
Branch: master
Commit: scala-ide:a3d4a6596a
`TextFileChange.LEAVE_DIRTY` causes changes to files that are not currently open
in the editor to be silently ignored.
`TextFileChange.KEEP_SAVE_STATE` seems more appropriate if the flag `saveAfter` is
set anyway.
Fixes #1002079
Branch: master
Commit: scala-ide:a3d4a6596a