From 004dfc40210cdca2d549b00e3110faa086bf9929 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 22 Apr 2014 11:12:38 +0200 Subject: [PATCH] IDEA-124220 Auto-popup parameter info should work after smart completion which inserted a comma --- .../codeInsight/completion/SmartCompletionDecorator.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/java/java-impl/src/com/intellij/codeInsight/completion/SmartCompletionDecorator.java b/java/java-impl/src/com/intellij/codeInsight/completion/SmartCompletionDecorator.java index e5a9ee43de69..e2cc1330f88e 100644 --- a/java/java-impl/src/com/intellij/codeInsight/completion/SmartCompletionDecorator.java +++ b/java/java-impl/src/com/intellij/codeInsight/completion/SmartCompletionDecorator.java @@ -15,6 +15,7 @@ */ package com.intellij.codeInsight.completion; +import com.intellij.codeInsight.AutoPopupController; import com.intellij.codeInsight.CodeInsightSettings; import com.intellij.codeInsight.ExpectedTypeInfo; import com.intellij.codeInsight.TailType; @@ -117,8 +118,14 @@ public class SmartCompletionDecorator extends TailTypeDecorator { context.commitDocument(); } myPosition = getPosition(context, this); - + + TailType tailType = computeTailType(context); + super.handleInsert(context); + + if (tailType == TailType.COMMA) { + AutoPopupController.getInstance(context.getProject()).autoPopupParameterInfo(context.getEditor(), null); + } } public static boolean hasUnboundTypeParams(final PsiMethod method, PsiType expectedType) {