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.
Description
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.
Methods
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) |
Method Descriptions
GDScriptTextDocument get_text_document() 🔗
Deprecated: GDScriptTextDocument is deprecated.
Returns the language server's GDScriptTextDocument instance.
GDScriptWorkspace get_workspace() 🔗
Returns the language server's GDScriptWorkspace instance.
Dictionary initialize(params: Dictionary) 🔗
Deprecated: 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) 🔗
Deprecated: Accessing LSP endpoints directly might lead to unwanted side effects. Connect to the server via TCP, like a regular language server client.
Returns true if the language server was initialized by a language server client, false otherwise.
bool is_smart_resolve_enabled() const 🔗
Returns true if the language server is providing the smart resolve feature, false otherwise. The feature can be configured through the editor settings.
void notify_client(method: String, params: Variant = null, client_id: int = -1) 🔗
Deprecated: Might result in unwanted side effects for connected clients.
Deprecated: Might result in unwanted side effects for connected clients.
void on_client_disconnected(client_id: int) 🔗
Deprecated: Might result in unwanted side effects for connected clients.