Merge pull request #46559 from asmaloney/fix-code-completion
Script editor: Fix two special cases not being checked in code completion
This commit is contained in:
commit
d86369b590
@ -2261,10 +2261,9 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||||||
}
|
}
|
||||||
|
|
||||||
r_arghint = _make_arguments_hint(info, p_argidx);
|
r_arghint = _make_arguments_hint(info, p_argidx);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ClassDB::is_parent_class(class_name, "Node") && (p_method == "get_node" || p_method == "has_node") && p_argidx == 0) {
|
if (p_argidx == 0 && ClassDB::is_parent_class(class_name, "Node") && (p_method == "get_node" || p_method == "has_node")) {
|
||||||
// Get autoloads
|
// Get autoloads
|
||||||
List<PropertyInfo> props;
|
List<PropertyInfo> props;
|
||||||
ProjectSettings::get_singleton()->get_property_list(&props);
|
ProjectSettings::get_singleton()->get_property_list(&props);
|
||||||
|
Loading…
Reference in New Issue
Block a user