Not finding classes for package view. It is not relevant anymore: we see Java classes as classes, not packages.
This commit is contained in:
-1
@@ -51,7 +51,6 @@ public object DescriptorToDeclarationUtil {
|
|||||||
val psiFacade = JavaPsiFacade.getInstance(project)
|
val psiFacade = JavaPsiFacade.getInstance(project)
|
||||||
val fqName = targetDescriptor.getFqName().asString()
|
val fqName = targetDescriptor.getFqName().asString()
|
||||||
result.addIfNotNull(psiFacade.findPackage(fqName))
|
result.addIfNotNull(psiFacade.findPackage(fqName))
|
||||||
result.addIfNotNull(psiFacade.findClass(fqName, project.allScope()))
|
|
||||||
}
|
}
|
||||||
// filter out elements which are navigate to some other element of the result
|
// filter out elements which are navigate to some other element of the result
|
||||||
// this is needed to avoid duplicated results for references to declaration in same library source file
|
// this is needed to avoid duplicated results for references to declaration in same library source file
|
||||||
|
|||||||
Reference in New Issue
Block a user