| Top |
| IdeLspClient * | ide_lsp_client_new () |
| void | ide_lsp_client_add_language () |
| void | ide_lsp_client_start () |
| void | ide_lsp_client_stop () |
| void | ide_lsp_client_call_async () |
| gboolean | ide_lsp_client_call_finish () |
| void | ide_lsp_client_send_notification_async () |
| gboolean | ide_lsp_client_send_notification_finish () |
| void | ide_lsp_client_get_diagnostics_async () |
| gboolean | ide_lsp_client_get_diagnostics_finish () |
| void | notification | Has Details |
| void | published-diagnostics | Run Last |
| gboolean | supports-language | Run Last |
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 |
An GVariant or |
[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 |
An GVariant or |
[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 |
a GAsyncResult |
|
diagnostics |
A location for a IdeDiagnostics or |
[nullable][out] |
error |
A location for a GError or |
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);
};
“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