mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Merge pull request #107852 from HolonProduction/completion-filter-current-impl
Autocompletion: Don't filter overrides when the existing function is the current one
This commit is contained in:
commit
4a90220fc9
3 changed files with 17 additions and 2 deletions
|
@ -3567,7 +3567,11 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||
continue;
|
||||
}
|
||||
|
||||
if (options.has(member.function->identifier->name) || completion_context.current_class->has_function(member.function->identifier->name)) {
|
||||
if (options.has(member.function->identifier->name)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (completion_context.current_class->has_function(member.get_name()) && completion_context.current_class->get_member(member.get_name()).function != function_node) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -3611,7 +3615,10 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||
}
|
||||
|
||||
for (const MethodInfo &mi : virtual_methods) {
|
||||
if (options.has(mi.name) || completion_context.current_class->has_function(mi.name)) {
|
||||
if (options.has(mi.name)) {
|
||||
continue;
|
||||
}
|
||||
if (completion_context.current_class->has_function(mi.name) && completion_context.current_class->get_member(mi.name).function != function_node) {
|
||||
continue;
|
||||
}
|
||||
String method_hint = mi.name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue