Sort files according to given scope in debugger (KT-21931)

#KT-21931 Fixed
This commit is contained in:
Nikolay Krasko
2017-12-18 16:14:40 +03:00
parent 7c73356893
commit e6aeb66875
@@ -96,8 +96,10 @@ object DebuggerUtils {
return result
}
private fun findFilesByNameInPackage(className: JvmClassName, fileName: String, project: Project, searchScope: GlobalSearchScope)
= findFilesWithExactPackage(className.packageFqName, searchScope, project).filter { it.name == fileName }
private fun findFilesByNameInPackage(className: JvmClassName, fileName: String, project: Project, searchScope: GlobalSearchScope): List<KtFile> {
val files = findFilesWithExactPackage(className.packageFqName, searchScope, project).filter { it.name == fileName }
return files.sortedWith(JavaElementFinder.byClasspathComparator(searchScope))
}
fun analyzeInlinedFunctions(
resolutionFacadeForFile: ResolutionFacade,