Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22284 from xitep/master
Backwards compatible CompletionImport#as_underscore
| -rw-r--r-- | crates/rust-analyzer/src/lsp/ext.rs | 1 | ||||
| -rw-r--r-- | docs/book/src/contributing/lsp-extensions.md | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/lsp/ext.rs b/crates/rust-analyzer/src/lsp/ext.rs index 5d0d9209de..91e065251d 100644 --- a/crates/rust-analyzer/src/lsp/ext.rs +++ b/crates/rust-analyzer/src/lsp/ext.rs @@ -858,6 +858,7 @@ pub struct InlayHintResolveData { #[derive(Debug, Serialize, Deserialize)] pub struct CompletionImport { pub full_import_path: String, + #[serde(default)] pub as_underscore: bool, } diff --git a/docs/book/src/contributing/lsp-extensions.md b/docs/book/src/contributing/lsp-extensions.md index 8ba6f6ab53..9bb10aac3f 100644 --- a/docs/book/src/contributing/lsp-extensions.md +++ b/docs/book/src/contributing/lsp-extensions.md @@ -1,5 +1,5 @@ <!--- -lsp/ext.rs hash: dc4ba5f417c74aa6 +lsp/ext.rs hash: edab2f3c124dc28e If you need to change the above hash to make the test pass, please check if you need to adjust this doc as well and ping this issue: |