Unnamed repository; edit this file 'description' to name the repository.
fix: sort and dedup include paths to prevent VFS issues
Aditya-PS-05 5 months ago
parent 0b89a81 · commit 85fcca6
-rw-r--r--crates/project-model/src/workspace.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/project-model/src/workspace.rs b/crates/project-model/src/workspace.rs
index 79bbbfb235..e02891eca2 100644
--- a/crates/project-model/src/workspace.rs
+++ b/crates/project-model/src/workspace.rs
@@ -844,6 +844,8 @@ impl ProjectWorkspace {
exclude.push(pkg_root.join("examples"));
exclude.push(pkg_root.join("benches"));
}
+ include.sort();
+ include.dedup();
PackageRoot { is_local, include, exclude }
})
.chain(mk_sysroot())
@@ -905,6 +907,8 @@ impl ProjectWorkspace {
exclude.push(pkg_root.join("examples"));
exclude.push(pkg_root.join("benches"));
}
+ include.sort();
+ include.dedup();
PackageRoot { is_local, include, exclude }
})
}))