From 66f1b4bf66caca3d8237dcedaa68799994e888c5 Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Sat, 4 Dec 2021 10:52:47 -0500 Subject: Prevent LSP adding signal func to non GDScripts --- modules/gdscript/language_server/gdscript_workspace.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/gdscript/language_server') diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp index 932bfb2caa..9be9cbc749 100644 --- a/modules/gdscript/language_server/gdscript_workspace.cpp +++ b/modules/gdscript/language_server/gdscript_workspace.cpp @@ -54,9 +54,13 @@ void GDScriptWorkspace::_bind_methods() { } void GDScriptWorkspace::apply_new_signal(Object *obj, String function, PackedStringArray args) { - String function_signature = "func " + function; Ref