diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-03 10:00:19 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-01-03 10:00:19 +0100 |
commit | 8be3c4b73fcea7792946b3cdeb93f7a70d3eae86 (patch) | |
tree | 1efbbf914c8ddb1ccb09f86395188648b8db4f00 /modules/gdscript/gdscript_editor.cpp | |
parent | 2d6d726a51bcb47bebf6165766347752346cd8ba (diff) | |
parent | c8fc824608efde15ae05a36ab6bab314ebcad01d (diff) | |
download | redot-engine-8be3c4b73fcea7792946b3cdeb93f7a70d3eae86.tar.gz |
Merge pull request #86341 from Vilcrow/fix-self-completion
Fix the autocomplete function for the 'self' keyword.
Diffstat (limited to 'modules/gdscript/gdscript_editor.cpp')
-rw-r--r-- | modules/gdscript/gdscript_editor.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/gdscript/gdscript_editor.cpp b/modules/gdscript/gdscript_editor.cpp index 87617cafab..9eb6fe8744 100644 --- a/modules/gdscript/gdscript_editor.cpp +++ b/modules/gdscript/gdscript_editor.cpp @@ -1494,11 +1494,8 @@ static bool _guess_expression_type(GDScriptParser::CompletionContext &p_context, } break; case GDScriptParser::Node::SELF: { if (p_context.current_class) { - if (p_context.type != GDScriptParser::COMPLETION_SUPER_METHOD) { - r_type.type = p_context.current_class->get_datatype(); - } else { - r_type.type = p_context.current_class->base_type; - } + r_type.type = p_context.current_class->get_datatype(); + r_type.type.is_meta_type = false; found = true; } } break; |