Skip to content

Commit 91c7c2c

Browse files
Merge pull request #22284 from xitep/master
Backwards compatible CompletionImport#as_underscore
2 parents cd24e6e + c6f661a commit 91c7c2c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

crates/rust-analyzer/src/lsp/ext.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -858,6 +858,7 @@ pub struct InlayHintResolveData {
858858
#[derive(Debug, Serialize, Deserialize)]
859859
pub struct CompletionImport {
860860
pub full_import_path: String,
861+
#[serde(default)]
861862
pub as_underscore: bool,
862863
}
863864

docs/book/src/contributing/lsp-extensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!---
2-
lsp/ext.rs hash: dc4ba5f417c74aa6
2+
lsp/ext.rs hash: edab2f3c124dc28e
33
44
If you need to change the above hash to make the test pass, please check if you
55
need to adjust this doc as well and ping this issue:

0 commit comments

Comments
 (0)