Skip to content

Commit 6766a6b

Browse files
author
Jonas Schievink
committed
Add symbol index FIXME
1 parent dd22657 commit 6766a6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ra_ide_db/src/symbol_index.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ pub fn world_symbols(db: &RootDatabase, query: Query) -> Vec<FileSymbol> {
177177
}
178178

179179
pub fn crate_symbols(db: &RootDatabase, krate: CrateId, query: Query) -> Vec<FileSymbol> {
180+
// FIXME(#4842): This now depends on CrateDefMap, why not build the entire symbol index from
181+
// that instead?
182+
180183
let def_map = db.crate_def_map(krate);
181184
let mut files = Vec::new();
182185
let mut modules = vec![def_map.root];

0 commit comments

Comments
 (0)