From 1a1ee43e3ea6e515a60c2d5c0798b6eac2dba2ad Mon Sep 17 00:00:00 2001 From: NNesh Date: Thu, 30 Dec 2021 15:25:02 +0500 Subject: [PATCH] Fixed completion showing for class members --- modules/gdscript/gdscript_parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp index 48f58e51fe7..bf4feb68b2d 100644 --- a/modules/gdscript/gdscript_parser.cpp +++ b/modules/gdscript/gdscript_parser.cpp @@ -805,6 +805,8 @@ void GDScriptParser::parse_class_body(bool p_is_multiline) { class_end = true; break; default: + // Display a completion with identifiers. + make_completion_context(COMPLETION_IDENTIFIER, nullptr); push_error(vformat(R"(Unexpected "%s" in class body.)", current.get_name())); advance(); break;