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 return result
} }
private fun findFilesByNameInPackage(className: JvmClassName, fileName: String, project: Project, searchScope: GlobalSearchScope) private fun findFilesByNameInPackage(className: JvmClassName, fileName: String, project: Project, searchScope: GlobalSearchScope): List<KtFile> {
= findFilesWithExactPackage(className.packageFqName, searchScope, project).filter { it.name == fileName } val files = findFilesWithExactPackage(className.packageFqName, searchScope, project).filter { it.name == fileName }
return files.sortedWith(JavaElementFinder.byClasspathComparator(searchScope))
}
fun analyzeInlinedFunctions( fun analyzeInlinedFunctions(
resolutionFacadeForFile: ResolutionFacade, resolutionFacadeForFile: ResolutionFacade,