File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,33 @@ type Code int64
17
17
const (
18
18
// ParseError is the invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.
19
19
ParseError = Code (- 32700 )
20
+
20
21
// InvalidRequest is the JSON sent is not a valid Request object.
21
22
InvalidRequest = Code (- 32600 )
23
+
22
24
// MethodNotFound is the method does not exist / is not available.
23
25
MethodNotFound = Code (- 32601 )
26
+
24
27
// InvalidParams is the invalid method parameter(s).
25
28
InvalidParams = Code (- 32602 )
29
+
26
30
// InternalError is the internal JSON-RPC error.
27
31
InternalError = Code (- 32603 )
28
32
29
33
// ServerNotInitialized is the error of server not initialized.
30
34
ServerNotInitialized = Code (- 32002 )
35
+
31
36
// UnknownError should be used for all non coded errors.
32
37
UnknownError = Code (- 32001 )
38
+
33
39
// RequestCancelled is the cancellation error.
40
+ //
41
+ // Defined by the Language Server Protocol.
34
42
RequestCancelled = Code (- 32800 )
43
+
35
44
// ContentModified is the state change that invalidates the result of a request in execution.
45
+ //
46
+ // Defined by the Language Server Protocol.
36
47
ContentModified = Code (- 32801 )
37
48
38
49
// ServerOverloaded is returned when a message was refused due to a
You can’t perform that action at this time.
0 commit comments