diff options
| author | Alan Zimmerman <alanzimm@fb.com> | 2022-09-23 09:45:24 +0100 |
|---|---|---|
| committer | Alan Zimmerman <alanzimm@fb.com> | 2022-09-23 09:49:44 +0100 |
| commit | fb0ce25d59c877eb4e3de07a04fae0aedfe6f33a (patch) | |
| tree | 8184d7eac8b1577bef342930cfca12f8cb615a5b | |
| parent | 5b49745d009634170493a214364261e36228274b (diff) | |
| download | rust-fb0ce25d59c877eb4e3de07a04fae0aedfe6f33a.tar.gz rust-fb0ce25d59c877eb4e3de07a04fae0aedfe6f33a.zip | |
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)] |
