From 97958e2a386f7a585ba22594311018371614852d Mon Sep 17 00:00:00 2001 From: Francois Belair Date: Sat, 4 Dec 2021 10:52:47 -0500 Subject: [PATCH] Prevent LSP adding signal func to non GDScripts (cherry picked from commit 66f1b4bf66caca3d8237dcedaa68799994e888c5) --- modules/gdscript/language_server/gdscript_workspace.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/language_server/gdscript_workspace.cpp b/modules/gdscript/language_server/gdscript_workspace.cpp index 29952c42f32..56f3641de90 100644 --- a/modules/gdscript/language_server/gdscript_workspace.cpp +++ b/modules/gdscript/language_server/gdscript_workspace.cpp @@ -53,9 +53,13 @@ void GDScriptWorkspace::_bind_methods() { } void GDScriptWorkspace::apply_new_signal(Object *obj, String function, PoolStringArray args) { - String function_signature = "func " + function; Ref