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§
- CONTENT_
MODIFIED - 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.
- LSP_
RESERVED_ ERROR_ RANGE_ END - This is the end range of LSP reserved error codes. It doesn’t denote a real error code.
- LSP_
RESERVED_ ERROR_ RANGE_ START - This is the start range of LSP reserved error codes. It doesn’t denote a real error code.
- REQUEST_
CANCELLED - The client has canceled a request and a server as detected the cancel.
- REQUEST_
FAILED - 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.
- SERVER_
CANCELLED - The server cancelled the request. This error code should only be used for requests that explicitly support being server cancellable.
- SERVER_
NOT_ INITIALIZED - 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.
- UNKNOWN_
ERROR_ CODE - 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.