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 @@

The Client Fixture

Writing Test Cases#

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.

+The only difference is that the generic 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.

diff --git a/docs/latest/en/pytest-lsp/reference.html b/docs/latest/en/pytest-lsp/reference.html index 545e204..818f207 100644 --- a/docs/latest/en/pytest-lsp/reference.html +++ b/docs/latest/en/pytest-lsp/reference.html @@ -233,7 +233,7 @@

LanguageClient
class pytest_lsp.LanguageClient(protocol_cls=<class 'pytest_lsp.protocol.LanguageClientProtocol'>, *args, **kwargs)#
-

Bases: BaseLanguageClient

+

Bases: BaseLanguageClient

Used to drive language servers under test.

Parameters:
@@ -248,7 +248,7 @@

LanguageClient
Parameters:
-

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.

-diagnostics: Dict[str, List[Diagnostic]]#
+diagnostics: Dict[str, List[Diagnostic]]#

Used to hold any recieved diagnostics.

@@ -339,19 +339,19 @@

LanguageClient
-log_messages: List[LogMessageParams]#
+log_messages: List[LogMessageParams]#

Holds any received window/logMessage requests.

-messages: List[ShowMessageParams]#
+messages: List[ShowMessageParams]#

Holds any received window/showMessage requests.

-shown_documents: List[ShowDocumentParams]#
+shown_documents: List[ShowDocumentParams]#

Used to keep track of the documents requested to be shown via a window/showDocument request.

@@ -383,7 +383,7 @@

Test SetupReturn type: -

ClientCapabilities

+

ClientCapabilities

@@ -397,7 +397,7 @@

Test SetupParameters:
@@ -408,14 +408,14 @@

Test Setup
Return type:
-

JsonRPCClient

+

JsonRPCClient

-client_factory: Callable[[], JsonRPCClient]#
+client_factory: Callable[[], JsonRPCClient]#

Factory function to use when constructing the test client instance.

@@ -467,7 +467,7 @@

Test Setup
Parameters: