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
Experimental: This class may be changed or removed in future versions.
GDScript language server.
Descripción
Provides access to certain features that are implemented in the language server.
Note: This class is not a language server client that can be used to access LSP functionality. It only provides access to a limited set of features that is implemented using the same technical foundation as the language server.
Métodos
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) |
Descripciones de Métodos
GDScriptTextDocument get_text_document() 🔗
Obsoleto: GDScriptTextDocument is deprecated.
Devuelve la instancia de GDScriptTextDocument del servidor de lenguaje.
GDScriptWorkspace get_workspace() 🔗
Devuelve la instancia de GDScriptWorkspace del servidor de lenguaje.
Variant initialize(params: Dictionary) 🔗
Obsoleto: 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) 🔗
Obsoleto: Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.
Devuelve true si el servidor de lenguaje fue inicializado por un cliente de servidor de lenguaje; de lo contrario, devuelve false.
bool is_smart_resolve_enabled() const 🔗
Devuelve true si el servidor de lenguaje está proporcionando la funcionalidad de resolución inteligente (smart resolve); de lo contrario, devuelve false. Esta funcionalidad se puede configurar a través de los ajustes del editor.
void notify_client(method: String, params: Variant = null, client_id: int = -1) 🔗
Obsoleto: Might result in unwanted side effects for connected clients.
Obsoleto: Might result in unwanted side effects for connected clients.
void on_client_disconnected(client_id: int) 🔗
Obsoleto: Might result in unwanted side effects for connected clients.