Skip to content

Commit

Permalink
Merge pull request #55624 from Razoric480/raz/cs-lsp-signal
Browse files Browse the repository at this point in the history
  • Loading branch information
akien-mga authored Dec 6, 2021
2 parents e1e3ea5 + 66f1b4b commit be975e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/gdscript/language_server/gdscript_workspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit be975e5

Please sign in to comment.