Top | ![]() |
![]() |
![]() |
![]() |
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); };
“io-stream”
property“io-stream” GIOStream *
The GIOStream to communicate over.
Flags: Read / Write / Construct Only
“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