From 5043c9ce9c9d07263305ef0e560b8ce506593748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Galil=C3=A9e=20=27Bill=27=20Enguehard?= Date: Fri, 22 May 2020 19:04:39 +0200 Subject: Modify hover info to show module path separated by a line --- crates/ra_ide/src/display.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/ra_ide') diff --git a/crates/ra_ide/src/display.rs b/crates/ra_ide/src/display.rs index cb3508086..323505ef6 100644 --- a/crates/ra_ide/src/display.rs +++ b/crates/ra_ide/src/display.rs @@ -79,14 +79,14 @@ pub(crate) fn rust_code_markup_with_doc( doc: Option<&str>, mod_path: Option<&str>, ) -> String { - let mut buf = "```rust\n".to_owned(); + let mut buf = "".to_owned(); if let Some(mod_path) = mod_path { if !mod_path.is_empty() { - format_to!(buf, "{}\n\n", mod_path); + format_to!(buf, "{}\n___\n", mod_path); } } - format_to!(buf, "{}\n```", code); + format_to!(buf, "```rust\n\n{}\n```", code); if let Some(doc) = doc { format_to!(buf, "\n\n{}", doc); -- cgit v1.2.3