aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crates/rust-analyzer/src/config.rs6
-rw-r--r--crates/rust-analyzer/src/main_loop/handlers.rs2
-rw-r--r--crates/rust-analyzer/src/to_proto.rs2
3 files changed, 4 insertions, 6 deletions
diff --git a/crates/rust-analyzer/src/config.rs b/crates/rust-analyzer/src/config.rs
index 0e4412ade..c0f7c2c0c 100644
--- a/crates/rust-analyzer/src/config.rs
+++ b/crates/rust-analyzer/src/config.rs
@@ -269,10 +269,8 @@ impl Config {
269 { 269 {
270 self.client_caps.hierarchical_symbols = value 270 self.client_caps.hierarchical_symbols = value
271 } 271 }
272 if let Some(value) = doc_caps 272 if let Some(value) =
273 .code_action 273 doc_caps.code_action.as_ref().map(|it| it.code_action_literal_support.is_some())
274 .as_ref()
275 .and_then(|it| Some(it.code_action_literal_support.is_some()))
276 { 274 {
277 self.client_caps.code_action_literals = value; 275 self.client_caps.code_action_literals = value;
278 } 276 }
diff --git a/crates/rust-analyzer/src/main_loop/handlers.rs b/crates/rust-analyzer/src/main_loop/handlers.rs
index a9703e1d6..ba6857556 100644
--- a/crates/rust-analyzer/src/main_loop/handlers.rs
+++ b/crates/rust-analyzer/src/main_loop/handlers.rs
@@ -281,7 +281,7 @@ pub fn handle_document_symbol(
281 kind: symbol.kind, 281 kind: symbol.kind,
282 deprecated: symbol.deprecated, 282 deprecated: symbol.deprecated,
283 location: Location::new(url.clone(), symbol.range), 283 location: Location::new(url.clone(), symbol.range),
284 container_name: container_name, 284 container_name,
285 }); 285 });
286 286
287 for child in symbol.children.iter().flatten() { 287 for child in symbol.children.iter().flatten() {
diff --git a/crates/rust-analyzer/src/to_proto.rs b/crates/rust-analyzer/src/to_proto.rs
index 461944ada..7dd7d9416 100644
--- a/crates/rust-analyzer/src/to_proto.rs
+++ b/crates/rust-analyzer/src/to_proto.rs
@@ -455,7 +455,7 @@ pub(crate) fn snippet_text_document_edit(
455 let edits = source_file_edit 455 let edits = source_file_edit
456 .edit 456 .edit
457 .into_iter() 457 .into_iter()
458 .map(|it| snippet_text_edit(&line_index, line_endings, is_snippet, it.clone())) 458 .map(|it| snippet_text_edit(&line_index, line_endings, is_snippet, it))
459 .collect(); 459 .collect();
460 Ok(lsp_ext::SnippetTextDocumentEdit { text_document, edits }) 460 Ok(lsp_ext::SnippetTextDocumentEdit { text_document, edits })
461} 461}