浏览代码

Merge pull request #56342 from NNesh/fix/class-completion

Rémi Verschelde 3 年之前
父节点
当前提交
8f8c3f4b4c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/gdscript/gdscript_parser.cpp

+ 2 - 0
modules/gdscript/gdscript_parser.cpp

@@ -817,6 +817,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;