Get the context of an Injected Language location
I'm injecting a language inside an XML. And is working perfect. My problem now is that when processing that language I need to know where in the xml it was injected. Kind of asking the parent of the PsiFile (mock:// ) that was created for my injected language and get the PsiElement of the hosted xml.
Is there any way to get this?
Please sign in to leave a comment.
file.getContext() should return the injection host
Thanks !!!