Skip to content

Commit

Permalink
docs: Update generic rpc server guide
Browse files Browse the repository at this point in the history
  • Loading branch information
alcarney committed Nov 4, 2024
1 parent 5177bdf commit 804ca30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/pytest-lsp/howto/testing-json-rpc-servers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ As an example we'll reuse some of the `pygls`_ internals to write a simple JSON-

- client to server request ``math/add``, returns the sum of two numbers ``a`` and ``b``
- client to server request ``math/sub``, returns the difference of two numbers ``a`` and ``b``
- client to server notification ``server/exit`` that instructs the server to exit
- server to client notification ``log/message``, allows the server to send debug messages to the client.

.. note::
Expand Down Expand Up @@ -40,7 +41,7 @@ Once you have your factory function defined you can pass it to the :class:`~pyte
.. literalinclude:: ../../../lib/pytest-lsp/tests/examples/generic-rpc/t_server.py
:language: python
:start-at: @pytest_lsp.fixture(
:end-at: # Teardown code
:end-at: rpc_client.protocol.notify

Writing Test Cases
------------------
Expand Down

0 comments on commit 804ca30

Please sign in to comment.