Browse Source

Merge pull request #92386 from AThousandShips/goto_fix

[GDScript LSP] Fix `show_native_symbol_in_editor`
Rémi Verschelde 1 năm trước cách đây
mục cha
commit
34fe09dda7

+ 1 - 1
modules/gdscript/language_server/gdscript_text_document.cpp

@@ -490,7 +490,7 @@ void GDScriptTextDocument::sync_script_content(const String &p_path, const Strin
 }
 }
 
 
 void GDScriptTextDocument::show_native_symbol_in_editor(const String &p_symbol_id) {
 void GDScriptTextDocument::show_native_symbol_in_editor(const String &p_symbol_id) {
-	ScriptEditor::get_singleton()->call_deferred(SNAME("_help_class_goto"), p_symbol_id);
+	callable_mp(ScriptEditor::get_singleton(), &ScriptEditor::goto_help).call_deferred(p_symbol_id);
 
 
 	DisplayServer::get_singleton()->window_move_to_foreground();
 	DisplayServer::get_singleton()->window_move_to_foreground();
 }
 }