@@ -141,50 +141,10 @@ package LSP.Constants is
141141 function Error return LSP.Structures.DiagnosticSeverity_Optional
142142 is (Is_Set => True, Value => LSP.Enumerations.Error);
143143
144- ErrorCodes_Map : constant array (LSP.Enumerations.ErrorCodes) of Integer :=
145- [LSP.Enumerations.ParseError => -32700 ,
146- LSP.Enumerations.InvalidRequest => -32600 ,
147- LSP.Enumerations.MethodNotFound => -32601 ,
148- LSP.Enumerations.InvalidParams => -32602 ,
149- LSP.Enumerations.InternalError => -32603 ,
150- LSP.Enumerations.jsonrpcReservedErrorRangeStart => -32099 ,
151- LSP.Enumerations.serverErrorStart => -32099 ,
152- LSP.Enumerations.ServerNotInitialized => -32002 ,
153- LSP.Enumerations.UnknownErrorCode => -32001 ,
154- LSP.Enumerations.jsonrpcReservedErrorRangeEnd => -32000 ,
155- LSP.Enumerations.serverErrorEnd => -32000 ];
156-
157- LSPErrorCodes_Map : constant array
158- (LSP.Enumerations.LSPErrorCodes) of Integer :=
159- [LSP.Enumerations.lspReservedErrorRangeStart => -32899 ,
160- LSP.Enumerations.RequestFailed => -32803 ,
161- LSP.Enumerations.ServerCancelled => -32802 ,
162- LSP.Enumerations.ContentModified => -32801 ,
163- LSP.Enumerations.RequestCancelled => -32800 ,
164- LSP.Enumerations.lspReservedErrorRangeEnd => -32800 ];
165-
166- function InternalError return Integer
167- is (ErrorCodes_Map (LSP.Enumerations.InternalError));
168-
169- function MethodNotFound return Integer
170- is (ErrorCodes_Map (LSP.Enumerations.MethodNotFound));
171-
172- function InvalidRequest return Integer
173- is (ErrorCodes_Map (LSP.Enumerations.InvalidRequest));
174-
175- function UnknownErrorCode return Integer
176- is (ErrorCodes_Map (LSP.Enumerations.UnknownErrorCode));
177-
178- function ServerNotInitialized return Integer
179- is (ErrorCodes_Map (LSP.Enumerations.ServerNotInitialized));
180-
181- function InvalidParams return Integer
182- is (ErrorCodes_Map (LSP.Enumerations.InvalidParams));
183-
184- function RequestFailed return Integer
185- is (LSPErrorCodes_Map (LSP.Enumerations.RequestFailed));
186-
187- function RequestCancelled return Integer
188- is (LSPErrorCodes_Map (LSP.Enumerations.RequestCancelled));
144+ function RequestFailed return LSP.Enumerations.ErrorCodes is
145+ (LSP.Enumerations.ErrorCodes (LSP.Enumerations.RequestFailed));
146+
147+ function RequestCancelled return LSP.Enumerations.ErrorCodes is
148+ (LSP.Enumerations.ErrorCodes (LSP.Enumerations.RequestCancelled));
189149
190150end LSP.Constants ;
0 commit comments