This commit is contained in:
Valentin Kipyatkov
2015-06-19 20:09:39 +03:00
parent 75a260a366
commit 0ab155d61d
2 changed files with 2 additions and 2 deletions
@@ -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
@@ -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
} }