Module lsp_types::error_codes

source ·
Expand description

In this module we only define constants for lsp specific error codes. There are other error codes that are defined in the JSON RPC specification.

Constants

  • The server detected that the content of a document got modified outside normal conditions. A server should NOT send this error code if it detects a content change in it unprocessed messages. The result even computed on an older state might still be useful for the client.
  • This is the end range of LSP reserved error codes. It doesn’t denote a real error code.
  • This is the start range of LSP reserved error codes. It doesn’t denote a real error code.
  • The client has canceled a request and a server as detected the cancel.
  • A request failed but it was syntactically correct, e.g the method name was known and the parameters were valid. The error message should contain human readable information about why the request failed.
  • The server cancelled the request. This error code should only be used for requests that explicitly support being server cancellable.
  • Defined in the LSP specification but in the range reserved for JSON-RPC error codes, namely the -32099 to -32000 “Reserved for implementation-defined server-errors.” range. The code has, nonetheless, been left in this range for backwards compatibility reasons.
  • Defined in the LSP specification but in the range reserved for JSON-RPC error codes, namely the -32099 to -32000 “Reserved for implementation-defined server-errors.” range. The code has, nonetheless, left in this range for backwards compatibility reasons.