FIR IDE: synchronous creation/registration of sessions

This commit is contained in:
Mikhail Glukhikh
2019-12-04 17:29:02 +03:00
parent 70fa12d9d2
commit c1789a0ecc
3 changed files with 25 additions and 12 deletions
@@ -72,7 +72,6 @@ class FirLibrarySession private constructor(
init {
sessionProvider.sessionCache[moduleInfo] = this
val javaSymbolProvider = JavaSymbolProvider(this, sessionProvider.project, scope)
registerComponent(
@@ -98,6 +97,8 @@ class FirLibrarySession private constructor(
FirCorrespondingSupertypesCache::class,
FirCorrespondingSupertypesCache(this)
)
sessionProvider.sessionCache[moduleInfo] = this
}
companion object {