From a028fbf6414a27ad70201e2b26f611be3f09f470 Mon Sep 17 00:00:00 2001 From: Aditya-PS-05 Date: Sun, 23 Nov 2025 20:45:57 +0530 Subject: [PATCH] fix: sort and dedup include paths to prevent VFS issues --- src/tools/rust-analyzer/crates/project-model/src/workspace.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tools/rust-analyzer/crates/project-model/src/workspace.rs b/src/tools/rust-analyzer/crates/project-model/src/workspace.rs index 79bbbfb235e5..e02891eca205 100644 --- a/src/tools/rust-analyzer/crates/project-model/src/workspace.rs +++ b/src/tools/rust-analyzer/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 } }) }))