mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-3814 Current parameter info: remove popup on moving cursor out of the parenthesis
This commit is contained in:
@@ -69,6 +69,11 @@ public class PyParameterInfoHandler implements ParameterInfoHandler<PyArgumentLi
|
||||
// align offset to nearest expression; context may point to a space, etc.
|
||||
List<PyExpression> flat_args = PyUtil.flattenedParensAndLists(arglist.getArguments());
|
||||
int alleged_cursor_offset = context.getOffset(); // this is already shifted backwards to skip spaces
|
||||
|
||||
if (!arglist.getTextRange().contains(alleged_cursor_offset)) {
|
||||
context.removeHint();
|
||||
return;
|
||||
}
|
||||
PsiFile file = context.getFile();
|
||||
CharSequence chars = file.getViewProvider().getContents();
|
||||
int offset = -1;
|
||||
|
||||
Reference in New Issue
Block a user