Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
GDScriptLanguageProtocol
Экспериментальное: This class may be changed or removed in future versions.
Языковой сервер GDScript.
Описание
Предоставляет доступ к определенным функциям, реализованным в языковом сервере.
Примечание: Этот класс не является клиентом языкового сервера, который можно использовать для доступа к функциональности LSP. Он предоставляет доступ только к ограниченному набору функций, реализованных на той же технической основе, что и языковой сервер.
Методы
initialize(params: Dictionary) |
|
void |
initialized(params: Variant) |
is_initialized() const |
|
is_smart_resolve_enabled() const |
|
void |
notify_client(method: String, params: Variant = null, client_id: int = -1) |
void |
on_client_disconnected(client_id: int) |
Описания метода
GDScriptTextDocument get_text_document() 🔗
Устарело: GDScriptTextDocument is deprecated.
Возвращает экземпляр GDScriptTextDocument языкового сервера.
GDScriptWorkspace get_workspace() 🔗
Возвращает экземпляр GDScriptWorkspace языкового сервера.
Variant initialize(params: Dictionary) 🔗
Устарело: Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.
void initialized(params: Variant) 🔗
Устарело: Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.
Возвращает true, если языковой сервер был инициализирован клиентом языкового сервера, false в противном случае.
bool is_smart_resolve_enabled() const 🔗
Возвращает true, если языковой сервер предоставляет функцию интеллектуального разрешения имен, false в противном случае. Эту функцию можно настроить в параметрах редактора.
void notify_client(method: String, params: Variant = null, client_id: int = -1) 🔗
Устарело: Might result in unwanted side effects for connected clients.
Устарело: Might result in unwanted side effects for connected clients.
void on_client_disconnected(client_id: int) 🔗
Устарело: Might result in unwanted side effects for connected clients.