diff --git a/docs/latest/en/.doctrees/environment.pickle b/docs/latest/en/.doctrees/environment.pickle index 29b3dac..a7ca022 100644 Binary files a/docs/latest/en/.doctrees/environment.pickle and b/docs/latest/en/.doctrees/environment.pickle differ diff --git a/docs/latest/en/pytest-lsp/guide/testing-json-rpc-servers.html b/docs/latest/en/pytest-lsp/guide/testing-json-rpc-servers.html index c151268..9b251d7 100644 --- a/docs/latest/en/pytest-lsp/guide/testing-json-rpc-servers.html +++ b/docs/latest/en/pytest-lsp/guide/testing-json-rpc-servers.html @@ -310,7 +310,7 @@
With the client fixuture defined, test cases are written almost identically as they would be for your LSP servers.
-The only difference is that the generic send_request_async()
and notify()
methods are used to communicate with the server.
send_request_async()
and notify()
methods are used to communicate with the server.
@pytest.mark.asyncio
async def test_add(client: JsonRPCClient):
"""Ensure that the server implements addition correctly."""
@@ -331,7 +331,7 @@ Writing Test Casesassert result.total == -1
However, it is also possible to extend the base JsonRPCClient
to provide a higher level interface to your server.
+
However, it is also possible to extend the base JsonRPCClient
to provide a higher level interface to your server.
See the SubprocessSphinxClient from the esbonio project for such an example.
Bases: BaseLanguageClient
Bases: BaseLanguageClient
Used to drive language servers under test.
params (InitializeParams) –
The parameters to send to the client.
+params (InitializeParams) –
The parameters to send to the client.
The following fields will be automatically set if left blank.
process_id
: Set to the PID of the current process.
The client’s capabilities.
Used to hold any recieved diagnostics.
Holds any received window/logMessage
requests.
Holds any received window/showMessage
requests.
Used to keep track of the documents requested to be shown via a
window/showDocument
request.
client_factory (Callable[[], JsonRPCClient]) –
client_factory (Callable[[], JsonRPCClient]) –
Factory function to use when constructing the test client instance.
item (CompletionItem) –
item (CompletionItem) –
commit_characters_support (bool) –
snippet_support (bool) –
capabilities (ClientCapabilities | None) –
capabilities (ClientCapabilities | None) –
method (str) –
result (Any) –
maybe_fn (Callable[[ClientCapabilities, Any], None] | None) –
maybe_fn (Callable[[ClientCapabilities, Any], None] | None) –
method (str) –
capabilities (ClientCapabilities) –
item (CompletionItem) –
capabilities (ClientCapabilities) –
item (CompletionItem) –
capabilities (ClientCapabilities) –
result (CompletionList | List[CompletionItem] | None) –
capabilities (ClientCapabilities) –
result (CompletionList | List[CompletionItem] | None) –
capabilities (ClientCapabilities) –
result (List[DocumentLink] | None) –
capabilities (ClientCapabilities) –
result (List[DocumentLink] | None) –