diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-12-06 17:46:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-06 17:46:25 +0100 |
commit | be975e5d18bfe03e722f8c345f2f48a98452b29c (patch) | |
tree | c8982d4903fcd5289146f59e6be36f9e13897d43 | |
parent | e1e3ea59785b58fc74cde44f4ea47a561a3ca293 (diff) | |
parent | 66f1b4bf66caca3d8237dcedaa68799994e888c5 (diff) |
Merge pull request #55624 from Razoric480/raz/cs-lsp-signal
-rw-r--r-- | modules/gdscript/language_server/gdscript_workspace.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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<Script> script = obj->get_script(); + if (script->get_language()->get_name() != "GDScript") { + return; + } + + String function_signature = "func " + function; String source = script->get_source_code(); if (source.find(function_signature) != -1) { |