We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ca1066 + a32f64d commit 7ba18daCopy full SHA for 7ba18da
src/tools/rust-analyzer/lib/lsp-server/src/msg.rs
@@ -80,9 +80,9 @@ pub struct Request {
80
81
#[derive(Debug, Serialize, Deserialize, Clone)]
82
pub struct Response {
83
- // JSON RPC allows this to be null if it was impossible
84
- // to decode the request's id. Ignore this special case
85
- // and just die horribly.
+ // JSON-RPC allows this to be null if we can't find or parse the
+ // request id. We fail deserialization in that case, so we just
+ // make this field mandatory.
86
pub id: RequestId,
87
#[serde(skip_serializing_if = "Option::is_none")]
88
pub result: Option<serde_json::Value>,
0 commit comments