You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Autocompletion: Don't filter overrides when the existing function is the current one
This commit is contained in:
@@ -3558,7 +3558,11 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||||||
continue;
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3602,7 +3606,10 @@ static void _find_call_arguments(GDScriptParser::CompletionContext &p_context, c
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const MethodInfo &mi : virtual_methods) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
String method_hint = mi.name;
|
String method_hint = mi.name;
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
scene="res://completion/get_node/get_node.tscn"
|
||||||
|
[output]
|
||||||
|
include=[
|
||||||
|
{"display": "_get(property: StringName) -> Variant:"},
|
||||||
|
]
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
extends Object
|
||||||
|
|
||||||
|
func _get➡
|
||||||
Reference in New Issue
Block a user