mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed PY-6868 No parameter info popup for parameter lists without closed parentheses
This commit is contained in:
@@ -71,7 +71,7 @@ public class PyParameterInfoHandler implements ParameterInfoHandler<PyArgumentLi
|
||||
int alleged_cursor_offset = context.getOffset(); // this is already shifted backwards to skip spaces
|
||||
|
||||
final TextRange arglistTextRange = arglist.getTextRange();
|
||||
if (!arglistTextRange.contains(alleged_cursor_offset) && arglistTextRange.getLength() != 1) {
|
||||
if (!arglistTextRange.contains(alleged_cursor_offset) && arglist.getText().endsWith(")")) {
|
||||
context.removeHint();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user