No top-level packages after "::"
This commit is contained in:
+1
-1
@@ -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()
|
||||
|
||||
+3
@@ -55,3 +55,6 @@ abstract class AbstractClass
|
||||
// ABSENT: class.java
|
||||
// EXIST: { itemText: "funWithFunctionParameter", tailText: "(p: () -> Unit) (<root>)", attributes: "" }
|
||||
// ABSENT: genericFun
|
||||
|
||||
// ABSENT: "kotlin"
|
||||
// ABSENT: "java"
|
||||
|
||||
Reference in New Issue
Block a user