From 08ef1749b6d044b8829bdd7f56cbc3b458efac4a Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Thu, 7 Apr 2016 19:18:55 +0300 Subject: [PATCH] Limit resolve scope when completing in module sources --- .../org/jetbrains/kotlin/idea/caches/resolve/scopeUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/scopeUtils.kt b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/scopeUtils.kt index 4712bc0992c..afe9757a031 100644 --- a/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/scopeUtils.kt +++ b/idea/idea-analysis/src/org/jetbrains/kotlin/idea/caches/resolve/scopeUtils.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 JetBrains s.r.o. + * Copyright 2010-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -31,7 +31,7 @@ fun getResolveScope(file: KtFile): GlobalSearchScope { } return when (file.getModuleInfo()) { - is ModuleSourceInfo -> file.resolveScope + is ModuleSourceInfo -> KotlinSourceFilterScope.sourceAndClassFiles(file.resolveScope, file.project) else -> GlobalSearchScope.EMPTY_SCOPE } }