tower-lsp 0.16.0
Pre-release
Pre-release
Added
- Support defining custom JSON-RPC requests on
LspService
(PR #313). - Add compatibility with WASM (PR #309).
- Support alternative async runtimes other than
tokio
when enabling theruntime-agnostic
feature (PR #309). - Implement
Service<Request, Response = Option<Response>>
forClient
(PR #313). - Expose
concurrency_level
setting onServer
, allowing adjustment from the default value of 4. - Add
Request::build()
interface for creating custom requests. - Add convenient
From
implementations forjsonrpc::Id
. - Add
.result()
/.error()
and.is_ok()
/.is_error()
methods tojsonrpc::Response
.
Changed
LspService
now implementsService<Request, Response = Option<Response>>
.LspService::new()
now returns aClientSocket
instead of aMessageStream
.Server::new()
now requires a thirdClientSocket
argument instead of using.interleave()
.- Rename
Client::send_custom_{request,notification}
toClient::send_{request,notification}
. - Rename
jsonrpc::Response::{ok, error}
tojsonrpc::Response::{from_ok, from_error}
.
Fixed
- Close
Client
channel properly onexit
notification (PR #309). - Fix
Server
occasionally stalling by processing client responses separately from client-to-server requests (PR #313). - Return error code
-32600
(invalid request) if incoming data is valid JSON, but isn't a JSON-RPC request or response (PR #313).