RUBY-22887 search for all symbols that an association defines

GitOrigin-RevId: 8004e2d6941502ad08986a0fdd4465979be9337f
This commit is contained in:
Henry Wylde
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 0b3fd46151
commit 8d2ad6e5ab
@@ -875,8 +875,8 @@ public class CodeInsightTestFixtureImpl extends BaseFixture implements CodeInsig
final FindUsagesManager usagesManager = ((FindManagerImpl)FindManager.getInstance(getProject())).getFindUsagesManager();
final FindUsagesHandler handler = usagesManager.getFindUsagesHandler(targetElement, false);
assertNotNull("Cannot find handler for: " + targetElement, handler);
final UsageViewImpl usageView = (UsageViewImpl)usagesManager.doFindUsages(new PsiElement[]{targetElement},
PsiElement.EMPTY_ARRAY,
final UsageViewImpl usageView = (UsageViewImpl)usagesManager.doFindUsages(handler.getPrimaryElements(),
handler.getSecondaryElements(),
handler,
handler.getFindUsagesOptions(),
false);