Foundry.LspClient¶
- Subclasses:
None
Methods¶
- Inherited:
Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8)
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.LspClient(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(context, stream, subprocess)¶
- Parameters:
context (
Foundry.Context) –stream (
Gio.IOStream) –subprocess (
Gio.Subprocess) –
- Return type:
- classmethod new_with_provider(context, stream, subprocess, provider)¶
- Parameters:
context (
Foundry.Context) –stream (
Gio.IOStream) –subprocess (
Gio.Subprocess) –provider (
Foundry.LspProvider) –
- Return type:
- await_()¶
- Returns:
a [class`Dex`.Future] that resolves when the subprocess has exited or rejects with error.
- Return type:
Await completion of the client subprocess.
- call(method, params)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves when a reply is received for the method call.
- Return type:
If params is floating, the reference will be consumed.
- notify(method, params)¶
- Parameters:
- Returns:
a [class`Dex`.Future] that resolves when the notification has been sent.
- Return type:
If params is floating, the reference will be consumed.
- query_capabilities()¶
- Returns:
a [class`Dex`.Future] that resolves when the query completes or fails.
- Return type:
Queries the servers capabilities.
Property Details¶
- Foundry.LspClient.props.io_stream¶
- Name:
io-stream- Type:
- Default Value:
- Flags:
- Foundry.LspClient.props.provider¶
- Name:
provider- Type:
- Default Value:
- Flags:
- Foundry.LspClient.props.subprocess¶
- Name:
subprocess- Type:
- Default Value:
- Flags: