You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/ra_ide_api/src/hover.rs
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,11 @@ pub(crate) fn hover(
21
21
match ref_result {
22
22
Exact(nav) => res.extend(doc_text_for(db, nav)?),
23
23
Approximate(navs) => {
24
-
res.push("Failed to exactly resolve the symbol. This is probably because rust_analyzer does not yet support glob imports or traits. \nThese methods were found instead:".to_string());
24
+
letmut msg = String::from("Failed to exactly resolve the symbol. This is probably because rust_analyzer does not yet support glob imports or traits.");
25
+
if !navs.is_empty(){
26
+
msg.push_str(" \nThese items were found instead:");
0 commit comments