Skip to content

Commit 03aa704

Browse files
committed
Auto merge of rust-lang#13280 - alanz:errorcode-requestfailed, r=Veykril
Add RequestFailed error code, as per spec 3.17 See microsoft/language-server-protocol#1341
2 parents 093de32 + fb0ce25 commit 03aa704

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)