use ra_db::{ SourceFileQuery, salsa::{Database, debug::DebugQueryTable}, }; use crate::db::RootDatabase; pub(crate) fn status(db: &RootDatabase) -> String { let n_parsed_files = db.query(SourceFileQuery).entries::>().len(); let n_defs = { let interner: &hir::HirInterner = db.as_ref(); interner.len() }; format!("#n_parsed_files {}\n#n_defs {}\n", n_parsed_files, n_defs) }