mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't walk module src roots in search for .class file source (IDEA-116085)
This commit is contained in:
@@ -119,7 +119,9 @@ public class JavaPsiImplementationHelperImpl extends JavaPsiImplementationHelper
|
||||
ProjectFileIndex projectFileIndex = ProjectFileIndex.SERVICE.getInstance(clsFile.getProject());
|
||||
final Set<VirtualFile> sourceRoots = ContainerUtil.newLinkedHashSet();
|
||||
for (OrderEntry orderEntry : projectFileIndex.getOrderEntriesForFile(vFile)) {
|
||||
Collections.addAll(sourceRoots, orderEntry.getFiles(OrderRootType.SOURCES));
|
||||
if (orderEntry instanceof LibraryOrSdkOrderEntry) {
|
||||
Collections.addAll(sourceRoots, orderEntry.getFiles(OrderRootType.SOURCES));
|
||||
}
|
||||
}
|
||||
for (VirtualFile root : sourceRoots) {
|
||||
VirtualFile source = root.findFileByRelativePath(relativeFilePath);
|
||||
|
||||
Reference in New Issue
Block a user