i am working on a plugin that deal with xml config file,and now i am investigating how to implement completion
as Dmitry adviced me ,i used a custom PsiReference for my element and registered it through a PsiReferenceProvider with a ReferenceProviderRegistry
and all works fine ,the referenceProvider registered and get called But the problem is my custom reference.getVarient which return the completion array NEVER called and i donot know why,so please help
what does PsiReference.getCanonicalText do ?
second if i have the following
andi registered three PsiReference implementations For XmlTag, XmlAttribute, XmlAttributeValue ,which one's getVarient will be called upon Ctrl-Space in the following locations
a- after the <
b- after i type