Skip to content

Commit 85fcca6

Browse files
committed
fix: sort and dedup include paths to prevent VFS issues
1 parent 0b89a81 commit 85fcca6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/project-model/src/workspace.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,8 @@ impl ProjectWorkspace {
844844
exclude.push(pkg_root.join("examples"));
845845
exclude.push(pkg_root.join("benches"));
846846
}
847+
include.sort();
848+
include.dedup();
847849
PackageRoot { is_local, include, exclude }
848850
})
849851
.chain(mk_sysroot())
@@ -905,6 +907,8 @@ impl ProjectWorkspace {
905907
exclude.push(pkg_root.join("examples"));
906908
exclude.push(pkg_root.join("benches"));
907909
}
910+
include.sort();
911+
include.dedup();
908912
PackageRoot { is_local, include, exclude }
909913
})
910914
}))

0 commit comments

Comments
 (0)