You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #55624 from Razoric480/raz/cs-lsp-signal
This commit is contained in:
@@ -54,9 +54,13 @@ void GDScriptWorkspace::_bind_methods() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GDScriptWorkspace::apply_new_signal(Object *obj, String function, PackedStringArray args) {
|
void GDScriptWorkspace::apply_new_signal(Object *obj, String function, PackedStringArray args) {
|
||||||
String function_signature = "func " + function;
|
|
||||||
Ref<Script> script = obj->get_script();
|
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();
|
String source = script->get_source_code();
|
||||||
|
|
||||||
if (source.find(function_signature) != -1) {
|
if (source.find(function_signature) != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user