diff options
| author | bors <bors@rust-lang.org> | 2022-09-27 15:03:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-27 15:03:15 +0000 |
| commit | 03aa7042e630f76ae18d125b3be17f7980dc5268 (patch) | |
| tree | 744531128c1637ff6aef58b3f7e84fa5cb421211 | |
| parent | 093de32f80c8913121ec3b653c4424d420527ca6 (diff) | |
| parent | fb0ce25d59c877eb4e3de07a04fae0aedfe6f33a (diff) | |
Auto merge of #13280 - alanz:errorcode-requestfailed, r=Veykril
Add RequestFailed error code, as per spec 3.17 See https://github.com/microsoft/language-server-protocol/issues/1341
| -rw-r--r-- | lib/lsp-server/src/msg.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/lsp-server/src/msg.rs b/lib/lsp-server/src/msg.rs index 97e5bd35ce0..ce00d37beb4 100644 --- a/lib/lsp-server/src/msg.rs +++ b/lib/lsp-server/src/msg.rs @@ -135,6 +135,14 @@ pub enum ErrorCode { /// /// @since 3.17.0 ServerCancelled = -32802, + + /// A request failed but it was syntactically correct, e.g the + /// method name was known and the parameters were valid. The error + /// message should contain human readable information about why + /// the request failed. + /// + /// @since 3.17.0 + RequestFailed = -32803, } #[derive(Debug, Serialize, Deserialize, Clone)] |
