aboutsummaryrefslogtreecommitdiff
path: root/src/Analysis/AnalysisEnvironment.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/Analysis/AnalysisEnvironment.kt')
-rw-r--r--src/Analysis/AnalysisEnvironment.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Analysis/AnalysisEnvironment.kt b/src/Analysis/AnalysisEnvironment.kt
index 164f76f5..39a05604 100644
--- a/src/Analysis/AnalysisEnvironment.kt
+++ b/src/Analysis/AnalysisEnvironment.kt
@@ -19,6 +19,7 @@ import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
import org.jetbrains.kotlin.cli.jvm.config.*
import org.jetbrains.kotlin.config.*
import org.jetbrains.kotlin.idea.caches.resolve.KotlinCacheService
+import org.jetbrains.kotlin.idea.caches.resolve.KotlinOutOfBlockCompletionModificationTracker
import org.jetbrains.kotlin.idea.caches.resolve.LibraryModificationTracker
import org.jetbrains.kotlin.idea.caches.resolve.ResolutionFacade
import org.jetbrains.kotlin.resolve.lazy.ResolveSession
@@ -58,7 +59,8 @@ public class AnalysisEnvironment(val messageCollector: MessageCollector, body: A
LibraryModificationTracker(environment.project))
projectComponentManager.registerService(javaClass<KotlinCacheService>(),
KotlinCacheService(environment.project))
-
+ projectComponentManager.registerService(javaClass<KotlinOutOfBlockCompletionModificationTracker>(),
+ KotlinOutOfBlockCompletionModificationTracker())
val sourceFiles = environment.getSourceFiles()
val facade = KotlinCacheService.getInstance(environment.project).getResolutionFacade(sourceFiles)