Introduce ModuleInfo -> SdkInfo cache

This fixes KT-35050 properly by caching this mapping and preventing
inspecting dependencies multiple times.
This commit is contained in:
Dmitry Savvinov
2020-03-19 18:23:27 +03:00
parent be37e7135a
commit 7d5396ac95
7 changed files with 79 additions and 16 deletions
@@ -362,6 +362,9 @@
<projectService serviceInterface="org.jetbrains.kotlin.idea.caches.project.LibraryDependenciesCache"
serviceImplementation="org.jetbrains.kotlin.idea.caches.project.LibraryDependenciesCacheImpl"/>
<projectService serviceInterface="org.jetbrains.kotlin.idea.caches.project.SdkInfoCache"
serviceImplementation="org.jetbrains.kotlin.idea.caches.project.SdkInfoCacheImpl"/>
<projectService serviceInterface="org.jetbrains.kotlin.idea.caches.resolve.IdePackageOracleFactory"
serviceImplementation="org.jetbrains.kotlin.idea.caches.resolve.IdePackageOracleFactory"/>