We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f21e479 commit 5b5b5faCopy full SHA for 5b5b5fa
tools/rust_analyzer/rust_project.rs
@@ -252,6 +252,10 @@ pub enum RunnableKind {
252
TestOne,
253
}
254
255
+fn try_symlink(f: &String) -> String {
256
+ std::fs::read_link(f).map(|v| v.to_string_lossy().to_string()).unwrap_or(f.clone())
257
+}
258
+
259
pub fn assemble_rust_project(
260
bazel: &Utf8Path,
261
workspace: &Utf8Path,
@@ -337,7 +341,7 @@ pub fn assemble_rust_project(
337
341
338
342
project.crates.push(Crate {
339
343
display_name: Some(c.display_name.clone()),
340
- root_module: c.root_module.clone(),
344
+ root_module: try_symlink(&c.root_module),
345
edition: c.edition.clone(),
346
deps: c
347
.deps
0 commit comments