You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Merge pull request #72789 from Vilcrow/fix-jump-to-definition
Fixed the jumping to function definition using 'Ctrl+LMB'.
This commit is contained in:
@@ -3491,6 +3491,14 @@ static Error _lookup_symbol_from_base(const GDScriptParser::DataType &p_base, co
|
||||
break;
|
||||
}
|
||||
|
||||
if (context.current_class) {
|
||||
if (context.type != GDScriptParser::COMPLETION_SUPER_METHOD) {
|
||||
base.type = context.current_class->get_datatype();
|
||||
} else {
|
||||
base.type = context.current_class->base_type;
|
||||
}
|
||||
}
|
||||
|
||||
if (_lookup_symbol_from_base(base.type, p_symbol, is_function, r_result) == OK) {
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user