I have PsiReference that I inject into XML file. In this:
The "OtherTemplate" is a reference. (I return a TextRange of inside
the XmlToken for the name.) IDEA highlights OtherTemplate as red when resolve()
returns null, but its getVariants() is never called when I invoke ctrl+space in
I was very confused about this, then I found that if I return a TextRange of
, it works (but the : is highlighted as well so this isn't a good
solution). It looks like IDEA only allows one PsiReference with the same
TextRange to complete.
Is this desired behavior? Is there something I do wrong? Should I file JIRA issue?