helix-mirror/helix-term
Michael Davis 170593161c
LSP: Send replies for malformed and unhandled RPC requests (#6058)
Previously we did not respond to malformed or unhandled LSP requests.
The JSONRPC spec says that all non-notification requests must have
responses:

> When a rpc call is made, the Server MUST reply with a Response,
> except for in the case of Notifications

(Note that Helix is the "Server" in this case. Also from the spec:
"The Server is defined as the origin of Response objects and the
handler of Request objects.")

So this change sends error replies for requests which can't be parsed
or handled. Request IDs are also now added to the log messages for
unhandled requests.
2023-03-08 10:50:57 +09:00
..
src LSP: Send replies for malformed and unhandled RPC requests (#6058) 2023-03-08 10:50:57 +09:00
tests Make m textobject look for pairs enclosing selections (#3344) 2023-02-10 13:52:57 -06:00
.gitignore Initial import. 2020-05-20 18:14:51 +09:00
build.rs feat(lsp): pass client_info on initialization (#4904) 2022-12-08 21:57:03 -06:00
Cargo.toml build(deps): bump grep-regex from 0.1.10 to 0.1.11 (#6215) 2023-03-06 19:18:28 -06:00