mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 05:13:35 +00:00
Fix mod item in included file resolving incorrectly
This commit is contained in:
parent
d2a31acda1
commit
5edf7bddc6
6 changed files with 39 additions and 36 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue