aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-07 11:32:25 +0100
committerLukas Wirth <[email protected]>2021-06-07 11:32:25 +0100
commit88bc4f17fd65fe1ffb7e75e048ead329807aa029 (patch)
tree9f45a3880f26eb8920e688f967e20b677a6f4b2f /crates
parentad9234fef2a90105448214255669fb46a382c3a5 (diff)
Fix incorrect config usage in hover references
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/src/handlers.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/handlers.rs b/crates/rust-analyzer/src/handlers.rs
index 70511c5ca..40dd0da3e 100644
--- a/crates/rust-analyzer/src/handlers.rs
+++ b/crates/rust-analyzer/src/handlers.rs
@@ -1510,7 +1510,7 @@ fn show_ref_command_link(
1510 snap: &GlobalStateSnapshot, 1510 snap: &GlobalStateSnapshot,
1511 position: &FilePosition, 1511 position: &FilePosition,
1512) -> Option<lsp_ext::CommandLinkGroup> { 1512) -> Option<lsp_ext::CommandLinkGroup> {
1513 if snap.config.hover().implementations { 1513 if snap.config.hover().references {
1514 if let Some(ref_search_res) = snap.analysis.find_all_refs(*position, None).unwrap_or(None) { 1514 if let Some(ref_search_res) = snap.analysis.find_all_refs(*position, None).unwrap_or(None) {
1515 let uri = to_proto::url(snap, position.file_id); 1515 let uri = to_proto::url(snap, position.file_id);
1516 let line_index = snap.file_line_index(position.file_id).ok()?; 1516 let line_index = snap.file_line_index(position.file_id).ok()?;