rust/crates/rust-analyzer
Brendan Cully 841d4f9dad Only include targets of packages that are workspace members
CargoWorkspace's package list includes packages that are path
dependencies, even if those packages aren't actually members of the
cargo workspace. As a result, rust-analyzer's runnable finder, which
returns the target from the first workspace that has a matching package,
may select the wrong working directory, causing runnables to fail, e.g.,
```
error: package `root` cannot be tested because it requires dev-dependencies and is not a member of the workspace
```

To fix this, we filter out packages that aren't members of the workspace
when searching for targets.

Fixes #7764
2021-10-11 18:28:05 -07:00
..
src Merge #10522 2021-10-11 19:58:27 +00:00
tests/slow-tests Only include targets of packages that are workspace members 2021-10-11 18:28:05 -07:00
build.rs Add semicolons for consistency 2021-10-03 23:39:43 +11:00
Cargo.toml fix: make signature info response conform to spec 2021-10-11 20:42:16 +01:00