File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
crates/rust-analyzer/src/lsp Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11//! rust-analyzer extensions to the LSP.
22
3+ // Note when adding new resolve payloads, add a #[serde(default)] on boolean fields as some clients
4+ // might strip `false` values from the JSON payload due to their reserialization logic turning false
5+ // into null which will then cause them to be omitted in the resolve request. See https://github.com/rust-lang/rust-analyzer/issues/18767
6+
37#![ allow( clippy:: disallowed_types) ]
48
59use std:: ops;
@@ -829,6 +833,7 @@ pub struct CompletionResolveData {
829833 pub version : Option < i32 > ,
830834 #[ serde( skip_serializing_if = "Option::is_none" , default ) ]
831835 pub trigger_character : Option < char > ,
836+ #[ serde( default ) ]
832837 pub for_ref : bool ,
833838 pub hash : String ,
834839}
Original file line number Diff line number Diff line change 11<!-- -
2- lsp/ext.rs hash: 512c06cd8b46a21d
2+ lsp/ext.rs hash: 6dd762ae19630ec0
33
44If you need to change the above hash to make the test pass, please check if you
55need to adjust this doc as well and ping this issue:
You can’t perform that action at this time.
0 commit comments