Skip to content

Commit 5043c9c

Browse files
committed
Modify hover info to show module path separated by a line
1 parent 7fece3b commit 5043c9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/ra_ide/src/display.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,14 @@ pub(crate) fn rust_code_markup_with_doc(
7979
doc: Option<&str>,
8080
mod_path: Option<&str>,
8181
) -> String {
82-
let mut buf = "```rust\n".to_owned();
82+
let mut buf = "".to_owned();
8383

8484
if let Some(mod_path) = mod_path {
8585
if !mod_path.is_empty() {
86-
format_to!(buf, "{}\n\n", mod_path);
86+
format_to!(buf, "{}\n___\n", mod_path);
8787
}
8888
}
89-
format_to!(buf, "{}\n```", code);
89+
format_to!(buf, "```rust\n\n{}\n```", code);
9090

9191
if let Some(doc) = doc {
9292
format_to!(buf, "\n\n{}", doc);

0 commit comments

Comments
 (0)