@@ -15,42 +15,42 @@ type Code int64
15
15
16
16
const (
17
17
// ParseError is the invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
18
- ParseError = Code ( - 32700 )
18
+ ParseError Code = - 32700
19
19
20
20
// InvalidRequest is the JSON sent is not a valid Request object.
21
- InvalidRequest = Code ( - 32600 )
21
+ InvalidRequest Code = - 32600
22
22
23
23
// MethodNotFound is the method does not exist / is not available.
24
- MethodNotFound = Code ( - 32601 )
24
+ MethodNotFound Code = - 32601
25
25
26
26
// InvalidParams is the invalid method parameter(s).
27
- InvalidParams = Code ( - 32602 )
27
+ InvalidParams Code = - 32602
28
28
29
29
// InternalError is the internal JSON-RPC error.
30
- InternalError = Code ( - 32603 )
30
+ InternalError Code = - 32603
31
31
32
32
// ServerNotInitialized is the error of server not initialized.
33
- ServerNotInitialized = Code ( - 32002 )
33
+ ServerNotInitialized Code = - 32002
34
34
35
35
// UnknownError should be used for all non coded errors.
36
- UnknownError = Code ( - 32001 )
36
+ UnknownError Code = - 32001
37
37
38
38
// RequestCancelled is the cancellation error.
39
39
//
40
40
// Defined by the Language Server Protocol.
41
- RequestCancelled = Code ( - 32800 )
41
+ RequestCancelled Code = - 32800
42
42
43
43
// ContentModified is the state change that invalidates the result of a request in execution.
44
44
//
45
45
// Defined by the Language Server Protocol.
46
- ContentModified = Code ( - 32801 )
46
+ ContentModified Code = - 32801
47
47
48
48
// ServerOverloaded is returned when a message was refused due to a
49
49
// server being temporarily unable to accept any new messages.
50
- ServerOverloaded = Code ( - 32000 )
50
+ ServerOverloaded Code = - 32000
51
51
52
- codeServerErrorStart = Code ( - 32099 ) //nolint:deadcode,varcheck
53
- codeServerErrorEnd = Code ( - 32000 ) //nolint:deadcode,varcheck
52
+ codeServerErrorStart Code = - 32099
53
+ codeServerErrorEnd Code = - 32000
54
54
)
55
55
56
56
// Error represents a jsonrpc2 error.
0 commit comments