SQL reference provider

How to register reference provider for PsiElements in .sql document?

tia :)


1
4 comments

In which exactly element type do you want to provide a reference?

0
Avatar
Permanently deleted user

Good question. PsiViever is not very helpfull in case of sql documents.
I think that I have to register reference provider for all com.intellij.psi.impl.source.tree.LeafPsiElement which have got language property set to "SQL" but mayby it will be suffiscient in my case if I could register reference provider for any element

0

Reference providers can be used to inject references only into elements which specifically support that. LeafPsiElement is not, and will never be, such an element. That's why I'm asking about a specific element type.

0
Avatar
Permanently deleted user

I'm aware that this thread is super old but it actually seems to work since version 2019.2.1 :)

0

Please sign in to leave a comment.