Top | ![]() |
![]() |
![]() |
![]() |
GIOStream * | io-stream | Read / Write / Construct Only |
GVariant * | server-capabilities | Read |
IdeLspTrace | trace | Read / Write |
GVariant *
ide_lsp_client_get_server_capabilities
(IdeLspClient *self
);
Gets the capabilities provided to us by the server after initializing.
This value is not available until after connecting and initializing the connection.
Since: 3.36
void ide_lsp_client_add_language (IdeLspClient *self
,const gchar *language_id
);
void ide_lsp_client_call_async (IdeLspClient *self
,const gchar *method
,GVariant *params
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously queries the Language Server using the JSON-RPC protocol.
If params
is floating, it's floating reference is consumed.
self |
An IdeLspClient |
|
method |
the method to call |
|
params |
[nullable][transfer none] | |
cancellable |
A cancellable or |
[nullable] |
callback |
the callback to receive the result, or |
|
user_data |
user data for |
Since: 3.26
gboolean ide_lsp_client_call_finish (IdeLspClient *self
,GAsyncResult *result
,GVariant **return_value
,GError **error
);
void ide_lsp_client_send_notification_async (IdeLspClient *self
,const gchar *method
,GVariant *params
,GCancellable *cancellable
,GAsyncReadyCallback notificationback
,gpointer user_data
);
Asynchronously sends a notification to the Language Server.
If params
is floating, it's reference is consumed.
self |
An IdeLspClient |
|
method |
the method to notification |
|
params |
[nullable][transfer none] | |
cancellable |
A cancellable or |
[nullable] |
notificationback |
the notificationback to receive the result, or |
|
user_data |
user data for |
Since: 3.26
gboolean ide_lsp_client_send_notification_finish (IdeLspClient *self
,GAsyncResult *result
,GError **error
);
void ide_lsp_client_get_diagnostics_async (IdeLspClient *self
,GFile *file
,GBytes *content
,const gchar *lang_id
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean ide_lsp_client_get_diagnostics_finish (IdeLspClient *self
,GAsyncResult *result
,IdeDiagnostics **diagnostics
,GError **error
);
Completes a request to ide_lsp_client_get_diagnostics_async()
.
self |
an IdeLspClient |
|
result |
||
diagnostics |
A location for a IdeDiagnostics or |
[nullable][out] |
error |
struct IdeLspClientClass { IdeObjectClass parent_class; void (*notification) (IdeLspClient *self, const gchar *method, GVariant *params); gboolean (*supports_language) (IdeLspClient *self, const gchar *language_id); void (*published_diagnostics) (IdeLspClient *self, GFile *file, IdeDiagnostics *diagnostics); GVariant *(*load_configuration) (IdeLspClient *self); };
“io-stream”
property“io-stream” GIOStream *
The GIOStream to communicate over.
Owner: IdeLspClient
Flags: Read / Write / Construct Only
“server-capabilities”
property“server-capabilities” GVariant *
The server capabilities as provided by the server.
Owner: IdeLspClient
Flags: Read
Allowed values: GVariant<a{sv}>
Default value: NULL
“trace”
property“trace” IdeLspTrace
If tracing should be enabled on the peer.
Owner: IdeLspClient
Flags: Read / Write
Default value: IDE_LSP_TRACE_OFF
“load-configuration”
signalGVariant* user_function (IdeLspClient *self, gpointer user_data)
Loads the configuration object to reply to a workspace/configuration request from the peer.
a GVariant containing the result or NULL
to proceed to the next signal handler.
[transfer full]
Flags: Run Last
Since: 3.36
“notification”
signalvoid user_function (IdeLspClient *idelspclient, gchar *arg1, GVariant *arg2, gpointer user_data)
Flags: Has Details
“published-diagnostics”
signalvoid user_function (IdeLspClient *idelspclient, GFile *arg1, IdeDiagnostics *arg2, gpointer user_data)
Flags: Run Last
“supports-language”
signalgboolean user_function (IdeLspClient *idelspclient, gchar *arg1, gpointer user_data)
Flags: Run Last