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?
请先登录再写评论。
file.getContext() should return the injection host
Thanks !!!