From 32f5276465266522ebc01b8417feeba99bf00f6f Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Fri, 6 Mar 2020 01:02:14 +0200 Subject: Show mod path in hover tooltip --- crates/ra_ide_db/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/ra_ide_db/src') diff --git a/crates/ra_ide_db/src/lib.rs b/crates/ra_ide_db/src/lib.rs index 79f48c9e3..efa472c7d 100644 --- a/crates/ra_ide_db/src/lib.rs +++ b/crates/ra_ide_db/src/lib.rs @@ -104,6 +104,10 @@ impl RootDatabase { db.query_mut(hir::db::MacroExpandQuery).set_lru_capacity(lru_capacity); db } + + pub fn get_crate_original_name(&self, crate_id: &CrateId) -> Option { + self.debug_data.crate_names.get(crate_id).cloned() + } } impl salsa::ParallelDatabase for RootDatabase { -- cgit v1.2.3