Expand description
Standard JSON-RPC 2.0 error codes plus the LSP-defined ones. Used by the actor to build error responses to server-initiated requests we can’t fulfil.
Constants§
- CONTENT_
MODIFIED - The document changed while the request was in flight, so the result would be stale; the client should re-request if still relevant.
- INTERNAL_
ERROR - Internal JSON-RPC error.
- INVALID_
PARAMS - Invalid method parameter(s).
- INVALID_
REQUEST - JSON sent is not a valid Request object.
- METHOD_
NOT_ FOUND - The method does not exist / is not available.
- PARSE_
ERROR - Invalid JSON received by the server.
- REQUEST_
CANCELLED - The request was cancelled (
$/cancelRequest) and the server stopped work on it. - REQUEST_
FAILED - The request was well-formed and understood, but failed (LSP 3.17).
- SERVER_
NOT_ INITIALIZED - A request arrived before the
initializehandshake completed.