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.