We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d6e16 commit fd426c4Copy full SHA for fd426c4
src/main/kotlin/org/tabooproject/development/completion/InfoFuncCompletion.kt
@@ -19,9 +19,8 @@ class InfoFuncCompletion: CompletionContributor() {
19
20
override fun fillCompletionVariants(parameters: CompletionParameters, result: CompletionResultSet) {
21
val position = parameters.position
22
- val parent = position.parent
23
// 确保前面是个对象, 否则不提供打印
24
- (parent.parent as? KtDotQualifiedExpression)?.receiverExpression ?: return
+ (position.parent.parent as? KtDotQualifiedExpression)?.receiverExpression ?: return
25
result.addElement(
26
PrioritizedLookupElement.withPriority(
27
LookupElementBuilder.create("info")
0 commit comments