Lsp-devtools

Latest version: v0.2.3

Safety actively analyzes 632420 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.4.2

Client Capabilities

- Add client capabilities for Neovim v0.10.0 ([164](https://github.com/swyddfa/lsp-devtools/issues/164))

Misc

- Start testing against pytest v8 ([145](https://github.com/swyddfa/lsp-devtools/issues/145))

0.4.1

Enhancements

- When a test fails `pytest-lsp` will now show the server's `stderr` output (if any) ([143](https://github.com/swyddfa/lsp-devtools/issues/143))

Client Capabilities

- Add client capabilities for Emacs v29.1 ([142](https://github.com/swyddfa/lsp-devtools/issues/142))

Fixes

- `LspSpecificationWarnings` will no longer be incorrectly emitted when a client does indeed support `window/workDoneProgress/create` requests ([119](https://github.com/swyddfa/lsp-devtools/issues/119))

Misc

- Bump minimum version of `pytest-asyncio` to `0.23.0` ([126](https://github.com/swyddfa/lsp-devtools/issues/126))

0.4.0

Features

- The test ``LanguageClient`` now supports ``workspace/configuration`` requests ([90](https://github.com/swyddfa/lsp-devtools/issues/90))
- pytest-lsp's ``LanguageClient`` is now able to handle ``window/workDoneProgress/create`` requests. ([91](https://github.com/swyddfa/lsp-devtools/issues/91))
- ``pytest-lsp`` is now able to integrate with ``lsp-devtools``, run ``pytest`` with the ``--lsp-devtools`` flag to enable the integration. ([97](https://github.com/swyddfa/lsp-devtools/issues/97))

Enhancements

- It is now possible to select a specific version of a client when using the ``client_capabilities()`` function.
e.g. ``client-namelatest``, ``client-namev2`` or ``client-name2.1.3``. ``pytest-lsp`` will choose the latest available version of the client that satisfies the given constraint. ([101](https://github.com/swyddfa/lsp-devtools/issues/101))

Client Capabilities

- Add client capabilities for Neovim versions ``v0.7.0`` and ``v0.8.0`` ([89](https://github.com/swyddfa/lsp-devtools/issues/89))
- Add client capabilities for Neovim ``v0.9.1`` ([100](https://github.com/swyddfa/lsp-devtools/issues/100))

0.2.3

Enhancements

- The `lsp-devtools agent` now forwards the server's `stderr` channel ([165](https://github.com/swyddfa/lsp-devtools/issues/165))

Fixes

- All `lsp-devtools` commands should no longer crash when encountering messages containing unicode characters ([157](https://github.com/swyddfa/lsp-devtools/issues/157))
- Commands like `lsp-devtools record` should now continue to function after encountering an error ([158](https://github.com/swyddfa/lsp-devtools/issues/158))

pytest-lsp-v0.4.1

0.2.2

Enhancements

- Added formatters `json` and `json-compact` that can be used within format strings. ([130](https://github.com/swyddfa/lsp-devtools/issues/130))
- When not printing messages to stdout, the `lsp-devtools record` command now displays a nice visualisation of the traffic between client and server - so that you can see that it's doing something ([134](https://github.com/swyddfa/lsp-devtools/issues/134))

Fixes

- The `lsp-devtools record` command will now produce valid JSON when using the `--to-file` option without an explicitly provided format string. ([130](https://github.com/swyddfa/lsp-devtools/issues/130))
- The `lsp-devtools agent` now watches for the when the server process exits and closes itself down also. ([132](https://github.com/swyddfa/lsp-devtools/issues/132))
- Commands like `lsp-devtools record` should now exit cleanly when hitting `Ctrl-C` ([133](https://github.com/swyddfa/lsp-devtools/issues/133))

pytest-lsp-v0.4.0

0.2.1

Enhancements

- If the agent is unable to connect to a server app immediately, it will now retry indefinitely until it succeeds or the language server exits ([77](https://github.com/swyddfa/lsp-devtools/issues/77))
- It is now possible to select completion items in the ``lsp-devtools client`` ([108](https://github.com/swyddfa/lsp-devtools/issues/108))
- Commands like ``lsp-devtools record`` and ``lsp-devtools inspect`` will no longer exit/stop capturing messages after the first LSP session exits ([110](https://github.com/swyddfa/lsp-devtools/issues/110))

pytest-lsp-v0.3.1
<h1 class="title">v0.3.1 - 2023-10-06</h1>

<p>
This release includes some minor breaking changes if you were using the lower-level APIs e.g <tt>make_client_server</tt>.
</p>
<p>
See <a href="https://github.com/swyddfa/esbonio/commit/8565add660ad015c989cd3c4a251dede92525997">this commit</a> for a sample migration
</p>

<div class="section" id="enhancements">
<h1>Enhancements</h1>
<ul class="simple">
<li>pytest-lsp's <tt class="docutils literal">LanguageClient</tt> is now based on the one provided by <tt class="docutils literal">pygls</tt>.
The main benefit is that the server connection is now based on an <tt class="docutils literal">asyncio.subprocess.Process</tt> removing the need for pytest-lsp to constantly check to see if the server is still running. (<a class="reference external" href="https://github.com/swyddfa/lsp-devtools/issues/61">#61</a>)</li>
<li>Fixtures created with the <cite>&64;pytest_lsp.fixture</cite> decorator can now request additional pytest fixtures (<a class="reference external" href="https://github.com/swyddfa/lsp-devtools/issues/71">#71</a>)</li>
<li>It is now possible to set the environment variables that the server under test is launched with. (<a class="reference external" href="https://github.com/swyddfa/lsp-devtools/issues/72">#72</a>)</li>
<li>It is now possible to test any JSON-RPC based server with <tt class="docutils literal"><span class="pre">pytest-lsp</span></tt>.
Note however, this support will only ever extend to managing the client-server connection. (<a class="reference external" href="https://github.com/swyddfa/lsp-devtools/issues/73">#73</a>)</li>
</ul>
</div>
<div class="section" id="misc">
<h1>Misc</h1>
<ul class="simple">
<li><tt class="docutils literal">make_test_client</tt> has been renamed to <tt class="docutils literal">make_test_lsp_client</tt> (<a class="reference external" href="https://github.com/swyddfa/lsp-devtools/issues/73">#73</a>)</li>
<li>Drop support for Python 3.7, add support for Python 3.12 (<a class="reference external" href="https://github.com/swyddfa/lsp-devtools/issues/75">#75</a>)</li>
</ul>
</div>

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.