Auto completion shows duplicate suggestions
thsaravana opened this issue · comments
When you are scopes like ../../name
etc.. and do an auto completion for name
, there are duplicate entries for name
.
This is because we do a full depth search for all fields in all the classes. There might be name
in more the 2 classes. We list them all. This should not be the case, since only one of them makes sense.
Remove these duplicates.
Don't simple remove the duplicates based on the PsiNameElement.name
, rather remove based on the depth search. (this is because the user can still tap Ctrl + J and look at the Text of the whole element. Here we need to show the right one)