commit 3eaa6c5a665999a9e374338137841937541ec33e
parent b40e658717b3f022e617225e881cd0619d313648
Author: Maria José Solano <majosolano99@gmail.com>
Date: Thu, 26 Jun 2025 02:23:31 -0700
fix(lsp): add `RequestFailed` error code constant #34645
Also remove `serverErrorStart/End` as [the spec](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#errorCodes)
says that they're deprecated and don't even represent a real error code.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/runtime/lua/vim/lsp/protocol.lua b/runtime/lua/vim/lsp/protocol.lua
@@ -162,14 +162,13 @@ local constants = {
MethodNotFound = -32601,
InvalidParams = -32602,
InternalError = -32603,
- serverErrorStart = -32099,
- serverErrorEnd = -32000,
ServerNotInitialized = -32002,
UnknownErrorCode = -32001,
-- Defined by the protocol.
RequestCancelled = -32800,
ContentModified = -32801,
ServerCancelled = -32802,
+ RequestFailed = -32803,
},
-- Describes the content type that a client supports in various