aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_db/src
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-03-05 23:02:14 +0000
committerKirill Bulatov <[email protected]>2020-03-07 21:20:18 +0000
commit32f5276465266522ebc01b8417feeba99bf00f6f (patch)
tree6388994a0cc67c7ca60658e81489a832569e3c4e /crates/ra_ide_db/src
parentaff82cf7ac172f213cb5dcca637cb2c5332294c1 (diff)
Show mod path in hover tooltip
Diffstat (limited to 'crates/ra_ide_db/src')
-rw-r--r--crates/ra_ide_db/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
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 {
104 db.query_mut(hir::db::MacroExpandQuery).set_lru_capacity(lru_capacity); 104 db.query_mut(hir::db::MacroExpandQuery).set_lru_capacity(lru_capacity);
105 db 105 db
106 } 106 }
107
108 pub fn get_crate_original_name(&self, crate_id: &CrateId) -> Option<String> {
109 self.debug_data.crate_names.get(crate_id).cloned()
110 }
107} 111}
108 112
109impl salsa::ParallelDatabase for RootDatabase { 113impl salsa::ParallelDatabase for RootDatabase {