No top-level packages after "::"

This commit is contained in:
Valentin Kipyatkov
2015-10-28 22:39:02 +03:00
parent 46b9879c47
commit 8b38d8d7b9
2 changed files with 4 additions and 1 deletions
@@ -199,7 +199,7 @@ class BasicCompletionSession(configuration: CompletionSessionConfiguration,
completeKeywords()
// getting root packages from scope is very slow so we do this in alternative way
if (callTypeAndReceiver.receiver == null && (descriptorKindFilter?.kindMask ?: 0).and(DescriptorKindFilter.PACKAGES_MASK) != 0) {
if (callTypeAndReceiver.receiver == null && callTypeAndReceiver.callType.descriptorKindFilter.kindMask.and(DescriptorKindFilter.PACKAGES_MASK) != 0) {
//TODO: move this code somewhere else?
val packageNames = PackageIndexUtil.getSubPackageFqNames(FqName.ROOT, originalSearchScope, project, prefixMatcher.asNameFilter())
.toMutableSet()
@@ -55,3 +55,6 @@ abstract class AbstractClass
// ABSENT: class.java
// EXIST: { itemText: "funWithFunctionParameter", tailText: "(p: () -> Unit) (<root>)", attributes: "" }
// ABSENT: genericFun
// ABSENT: "kotlin"
// ABSENT: "java"