Rename
This commit is contained in:
@@ -342,7 +342,7 @@ class BasicCompletionSession(configuration: CompletionSessionConfiguration,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public fun disableAutoPopup(): Boolean {
|
public fun shouldDisableAutoPopup(): Boolean {
|
||||||
return when (completionKind) {
|
return when (completionKind) {
|
||||||
CompletionKind.PARAMETER_NAME, CompletionKind.ANNOTATION_TYPES_OR_PARAMETER_NAME -> !shouldCompleteParameterNameAndType()
|
CompletionKind.PARAMETER_NAME, CompletionKind.ANNOTATION_TYPES_OR_PARAMETER_NAME -> !shouldCompleteParameterNameAndType()
|
||||||
else -> false
|
else -> false
|
||||||
|
|||||||
+1
-1
@@ -225,7 +225,7 @@ public class KotlinCompletionContributor : CompletionContributor() {
|
|||||||
if (parameters.getCompletionType() == CompletionType.BASIC) {
|
if (parameters.getCompletionType() == CompletionType.BASIC) {
|
||||||
val session = BasicCompletionSession(configuration, parameters, result)
|
val session = BasicCompletionSession(configuration, parameters, result)
|
||||||
|
|
||||||
if (parameters.isAutoPopup() && session.disableAutoPopup()) {
|
if (parameters.isAutoPopup() && session.shouldDisableAutoPopup()) {
|
||||||
result.stopHere()
|
result.stopHere()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user