Crates.io | lsp-async-stub |
lib.rs | lsp-async-stub |
version | 0.6.4 |
source | src |
created_at | 2020-12-28 03:40:57.130586 |
updated_at | 2024-07-31 08:37:09.007675 |
description | An LSP server stub for futures |
homepage | |
repository | https://github.com/tamasfe/taplo |
max_upload_size | |
id | 328109 |
size | 48,764 |
This library provides utilities and a basic server stub for asynchronous LSP communication with JSON RPC.
Used mainly by taplo-lsp
.
The server stub expects async handlers that will be called for each message along with the parameters in the message and a context for shared data, cancellation and sending further requests/notifications back to the client. It also handles invalid messages, initialization and teardown according to the LSP spec.