aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-07 11:33:13 +0100
committerGitHub <[email protected]>2021-06-07 11:33:13 +0100
commit5f7fc5ae68ff5debead06e377153e100b6e9951d (patch)
treeec8753cb24b43ca7360f94f53fa2362395ea4d37
parent1d8bd4fdf63e9280b07628b8ad85cd5247a0c870 (diff)
parent88bc4f17fd65fe1ffb7e75e048ead329807aa029 (diff)
Merge #9161
9161: Fix incorrect config usage in hover references r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]>
-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()?;