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)
}
@@ -100,6 +100,7 @@ public class KotlinTypedHandler extends TypedHandlerDelegate {
}
if (iterator.atEnd() || !(SUPPRESS_AUTO_INSERT_CLOSE_BRACE_AFTER.contains(iterator.getTokenType()))) {
AutoPopupController.getInstance(project).autoPopupParameterInfo(editor, null);
return Result.CONTINUE;
}