Often I will perform a Find Usages or Find in Path to find some method / code / etc.
with the intent to change it to something else.
As I step through each find result line item, I jump to source and then modify the code.
Now once I change that line, the Find Results window marks the item as INVALID.
Often, when I go to the next item to modify it, I want to go back and copy what I had added
to one of the previous items.
But since the previous items are INVALID, I can no longer jump to source by clicking on the
item.
What I would like to see is that IDEA continue to mark the items as INVALID, but go ahead and
make a best effor to jump to the source code line. The simpliest implementation is to just jump
to the original line number when the search was done.
If you look at my screenshot you can see that even for the INVALID items, IDEA still remembers the
file, line number, and column number of the item.
I understand that if I added or deleted lines, then the jump to source might be off, but I can understand
that, and IDEA has given me adequate warning by marking it as INVALID. To be more exact, IDEA
could modify the line description to remove the column number and indicate the line number is only
approximate, e.g. Change
INVALID (1081, 52) out.println(columns[i].getPaddingTag()
to
INVALID (1081?) out.println(columns[i].getPaddingTag()
Only if the file no longer exists should IDEA do nothing when you click on the item.