Skip to content

Commit fb0ce25

Browse files
committed
Add RequestFailed error code, as per spec 3.17
See microsoft/language-server-protocol#1341
1 parent 5b49745 commit fb0ce25

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: lib/lsp-server/src/msg.rs

+8
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,14 @@ pub enum ErrorCode {
135135
///
136136
/// @since 3.17.0
137137
ServerCancelled = -32802,
138+
139+
/// A request failed but it was syntactically correct, e.g the
140+
/// method name was known and the parameters were valid. The error
141+
/// message should contain human readable information about why
142+
/// the request failed.
143+
///
144+
/// @since 3.17.0
145+
RequestFailed = -32803,
138146
}
139147

140148
#[derive(Debug, Serialize, Deserialize, Clone)]

0 commit comments

Comments
 (0)