fix: Make lang items query properly filter out overwritten/excluded sysroots

This commit is contained in:
Shoyu Vanilla 2025-08-17 16:09:52 +09:00
parent e10fa9393e
commit 15ac6a21dd
7 changed files with 167 additions and 69 deletions

View file

@ -66,13 +66,9 @@ pub use rustc_hash::{FxHashMap, FxHashSet, FxHasher};
pub use ::line_index;
/// `base_db` is normally also needed in places where `ide_db` is used, so this re-export is for convenience.
pub use base_db;
pub use base_db::{self, FxIndexMap, FxIndexSet};
pub use span::{self, FileId};
pub type FxIndexSet<T> = indexmap::IndexSet<T, std::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
pub type FxIndexMap<K, V> =
indexmap::IndexMap<K, V, std::hash::BuildHasherDefault<rustc_hash::FxHasher>>;
pub type FilePosition = FilePositionWrapper<FileId>;
pub type FileRange = FileRangeWrapper<FileId>;