From 7fe750583e17f4e40cc8dda99a59205d22f686f1 Mon Sep 17 00:00:00 2001 From: Mariano Suligoy Date: Tue, 20 Jun 2017 17:13:17 -0300 Subject: [PATCH] GdScript: Add signal autocompletion to emit_signal function --- modules/gdscript/gd_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index 5e3ce31dd63..12e26163d96 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -1643,7 +1643,7 @@ static void _find_type_arguments(GDCompletionContext &context, const GDParser::N } else { //regular method - if (p_method.operator String() == "connect") { + if (p_method.operator String() == "connect" || (p_method.operator String() == "emit_signal" && p_argidx == 0)) { if (p_argidx == 0) { List sigs;