mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-74635, IDEA-74639 Groovy Parameter Info is not updated after changes of PSI or caret position
This commit is contained in:
+6
@@ -169,6 +169,12 @@ public class GroovyParameterInfoHandler implements ParameterInfoHandlerWithTabAc
|
||||
}
|
||||
|
||||
public void updateParameterInfo(@NotNull GroovyPsiElement place, UpdateParameterInfoContext context) {
|
||||
final PsiElement parameterOwner = context.getParameterOwner();
|
||||
if (parameterOwner != place) {
|
||||
context.removeHint();
|
||||
return;
|
||||
}
|
||||
|
||||
int offset = context.getEditor().getCaretModel().getOffset();
|
||||
offset = CharArrayUtil.shiftForward(context.getEditor().getDocument().getText(), offset, " \t\n");
|
||||
final int currIndex = getCurrentParameterIndex(place, offset);
|
||||
|
||||
Reference in New Issue
Block a user