Ide.LspClient
Description: Reference for Ide.LspClient

### Class

# IdeLspClient

#### Description

    class Ide.LspClient : Ide.Object {
      parent_instance: IdeObject
    }

No description available.

#### Hierarchy

#### Ancestors

- IdeObject
- GObject

#### Constructors

###### ide_lsp_client_new

No description available.

#### Instance methods

###### ide_lsp_client_add_language

No description available.

###### ide_lsp_client_call_async

Asynchronously queries the Language Server using the JSON-RPC protocol.

Available since: 3.26

###### ide_lsp_client_call_finish

No description available.

###### ide_lsp_client_get_diagnostics_async

No description available.

###### ide_lsp_client_get_diagnostics_finish

Completes a request to ide_lsp_client_get_diagnostics_async().

###### ide_lsp_client_get_initialization_options

Gets the initialization options for the client.

###### ide_lsp_client_get_server_capabilities

Gets the capabilities provided to us by the server after initializing.

Available since: 3.36

###### ide_lsp_client_get_trace

No description available.

###### ide_lsp_client_send_notification_async

Asynchronously sends a notification to the Language Server.

Available since: 3.26

###### ide_lsp_client_send_notification_finish

No description available.

###### ide_lsp_client_set_initialization_options

Sets the `initilizationOptions` to send to the language server when the server is initialized.

Available since: 42.0

###### ide_lsp_client_set_root_uri

No description available.

###### ide_lsp_client_set_trace

No description available.

###### ide_lsp_client_start

No description available.

###### ide_lsp_client_stop

No description available.

##### Methods inherited from IdeObject (28)

Please see IdeObject for a full list of methods.

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Ide.LspClient:initialization-options

No description available.

###### Ide.LspClient:io-stream

No description available.

###### Ide.LspClient:root-uri

No description available.

###### Ide.LspClient:server-capabilities

No description available.

###### Ide.LspClient:trace

No description available.

###### Ide.LspClient:use-markdown-in-diagnostics

No description available.

##### Properties inherited from IdeObject (2)

###### Ide.Object:cancellable

The “cancellable” property is a `GCancellable` that can be used by operations that will be cancelled when the `IdeObject::destroy` signal is emitted on `self`.

Available since: 3.32

###### Ide.Object:parent

The parent `IdeObject`, if any.

Available since: 3.32

#### Signals

###### Ide.LspClient::initialized

No description available.

###### Ide.LspClient::load-configuration

Loads the configuration object to reply to a workspace/configuration request from the peer.

Available since: 3.36

###### Ide.LspClient::notification

No description available.

###### Ide.LspClient::published-diagnostics

No description available.

###### Ide.LspClient::supports-language

No description available.

##### Signals inherited from IdeObject (1)

###### Ide.Object::destroy

The “destroy” signal is emitted when the object should destroy itself and cleanup any state that is no longer necessary. This happens when the object has been removed from the because it was requested to be destroyed, or because a parent object is being destroyed.

Available since: 3.32

##### Signals inherited from GObject (1)

###### GObject.Object::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    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
      );
      void (* initialized) (
        IdeLspClient* self
      );

    }

###### Class members

`parent_class` |
    IdeObjectClass
| No description available.
`notification` |
    void (* notification) (
        IdeLspClient* self,
        const gchar* method,
        GVariant* params
      )
| No description available.
`supports_language` |
    gboolean (* supports_language) (
        IdeLspClient* self,
        const gchar* language_id
      )
| No description available.
`published_diagnostics` |
    void (* published_diagnostics) (
        IdeLspClient* self,
        GFile* file,
        IdeDiagnostics* diagnostics
      )
| No description available.
`load_configuration` |
    GVariant* (* load_configuration) (
        IdeLspClient* self
      )
| No description available.
`initialized` |
    void (* initialized) (
        IdeLspClient* self
      )
| No description available.

#### Virtual methods

###### Ide.LspClientClass.initialized

No description available.

###### Ide.LspClientClass.load_configuration

No description available.

###### Ide.LspClientClass.notification

No description available.

###### Ide.LspClientClass.published_diagnostics

No description available.

###### Ide.LspClientClass.supports_language

No description available.