GotoDeclarationAction.findAllTargetElements does not find elements in Rider 2019.1

Answered

I'm using

public static PsiElement[] GotoDeclarationAction.findAllTargetElements(Project project, Editor editor, int offset)

to find a PsiElement for a GoTo-action. This works for IntelliJ, PyCharm, PhpStorm, AppCode, ... except for Rider. I tried the alternative

TargetElementUtil.getInstance().findTargetElement

but it doesn't return a result either.

Any idea what the appropriate call for Rider is?

 

Thanks in advance,

Hendrik

2 comments
Comment actions Permalink

Oh, I missed to answer. Thanks, that helps!

0

Please sign in to leave a comment.