mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
in Ctrl-Shift-I, don't skip to second implementation if it's in the same file as the first one (PY-4477)
This commit is contained in:
+4
-1
@@ -186,7 +186,10 @@ public class ShowImplementationsAction extends AnAction implements PopupAction {
|
||||
final VirtualFile virtualFile = file.getVirtualFile();
|
||||
final PsiFile containingFile = impls[0].getContainingFile();
|
||||
if (virtualFile != null && containingFile != null && virtualFile.equals(containingFile.getVirtualFile())) {
|
||||
index = 1;
|
||||
final PsiFile secondContainingFile = impls[1].getContainingFile();
|
||||
if (secondContainingFile != containingFile) {
|
||||
index = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user