struct LSP::Message::Cancel
- LSP::Message::Cancel
- Struct
- Value
- Object
Overview
The base protocol offers support for request cancellation.
A request that got canceled still needs to return from the server and send a response back. It can not be left open / hanging. This is in line with the JSON RPC protocol that requires that every request sends a response back. In addition it allows for returning partial results on cancel. If the requests returns an error response on cancellation it is advised to set the error code to ErrorCodes.RequestCancelled.
Notification and requests whose methods start with ‘$/’ are messages which are protocol implementation dependent and might not be implementable in all clients or servers. For example if the server implementation uses a single threaded synchronous programming language then there is little a server can do to react to a ‘$/cancelRequest’. If a server or client receives notifications or requests starting with ‘$/’ it is free to ignore them if they are unknown.
Included Modules
- JSON::Serializable
Defined in:
lsp/message.crConstructors
Class Method Summary
Instance Method Summary
- #jsonrpc : String
- #jsonrpc=(jsonrpc : String)
- #method : String
- #method=(method : String)
- #params : Params
- #params=(params : Params)