Auto-popup lambda type parameter info (KT-28401)

#KT-28401 Fixed
This commit is contained in:
Nikolay Krasko
2018-10-19 01:39:36 +03:00
parent d30b66467b
commit 8fad4db8ce
2 changed files with 2 additions and 3 deletions
@@ -179,9 +179,7 @@ sealed class KotlinFunctionInsertHandler(callType: CallType<*>) : KotlinCallable
if (!insertTypeArguments) {
if (shouldPlaceCaretInBrackets(completionChar) || closeBracketOffset == null) {
editor.caretModel.moveToOffset(openingBracketOffset + 1 + inBracketsShift)
if (!insertLambda) {
AutoPopupController.getInstance(project)?.autoPopupParameterInfo(editor, offsetElement)
}
AutoPopupController.getInstance(project)?.autoPopupParameterInfo(editor, offsetElement)
} else {
editor.caretModel.moveToOffset(closeBracketOffset + 1)
}