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) {
|
||||
CompletionKind.PARAMETER_NAME, CompletionKind.ANNOTATION_TYPES_OR_PARAMETER_NAME -> !shouldCompleteParameterNameAndType()
|
||||
else -> false
|
||||
|
||||
+1
-1
@@ -225,7 +225,7 @@ public class KotlinCompletionContributor : CompletionContributor() {
|
||||
if (parameters.getCompletionType() == CompletionType.BASIC) {
|
||||
val session = BasicCompletionSession(configuration, parameters, result)
|
||||
|
||||
if (parameters.isAutoPopup() && session.disableAutoPopup()) {
|
||||
if (parameters.isAutoPopup() && session.shouldDisableAutoPopup()) {
|
||||
result.stopHere()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user