Fix mod item in included file resolving incorrectly

This commit is contained in:
Lukas Wirth 2023-12-02 13:34:40 +01:00
parent d2a31acda1
commit 5edf7bddc6
6 changed files with 39 additions and 36 deletions

View file

@ -66,7 +66,7 @@ impl ModDir {
attr_path: Option<&SmolStr>,
) -> Result<(FileId, bool, ModDir), Box<[String]>> {
let name = name.unescaped();
let orig_file_id = file_id.original_file(db.upcast());
let orig_file_id = file_id.original_file_respecting_includes(db.upcast());
let mut candidate_files = ArrayVec::<_, 2>::new();
match attr_path {