mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-97264 IntelliLang support for "Path to File" language
This commit is contained in:
-1
@@ -91,7 +91,6 @@ public class ReferenceInjectionTest extends LightPlatformCodeInsightFixtureTestC
|
||||
PsiElement element = myFixture.getFile().findElementAt(myFixture.getCaretOffset());
|
||||
element = PsiTreeUtil.getParentOfType(element, PsiLanguageInjectionHost.class);
|
||||
assertNotNull(element);
|
||||
element.getReferences();
|
||||
return InjectedReferencesContributor.getInjectedReferences(element);
|
||||
}
|
||||
|
||||
|
||||
+1
@@ -52,6 +52,7 @@ public class InjectedReferencesContributor extends PsiReferenceContributor {
|
||||
|
||||
@Nullable
|
||||
public static PsiReference[] getInjectedReferences(PsiElement element) {
|
||||
element.getReferences();
|
||||
return element.getUserData(INJECTED_REFERENCES);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user