rust-analyzer/crates
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
..
base_db internal: add integrated test for token censoring 2021-10-10 16:52:21 +03:00
cfg internal: update expect 2021-10-09 17:17:16 +03:00
flycheck Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00
hir Expose HasSource::source through Semantics with caching behaviour 2021-10-07 15:00:14 +02:00
hir_def internal: add integrated test for token censoring 2021-10-10 16:52:21 +03:00
hir_expand Merge #10514 2021-10-10 18:09:13 +00:00
hir_ty internal: update expect 2021-10-09 17:17:16 +03:00
ide Merge #10504 2021-10-10 07:17:52 +00:00
ide_assists Merge #10504 2021-10-10 07:17:52 +00:00
ide_completion Simplify 2021-10-11 21:49:50 +02:00
ide_db internal: update expect 2021-10-09 17:17:16 +03:00
ide_diagnostics Merge #10504 2021-10-10 07:17:52 +00:00
ide_ssr internal: update expect 2021-10-09 17:17:16 +03:00
limit internal: add API to check what are the max limits in practice 2021-07-31 18:26:43 +03:00
mbe internal: clean up code duplication 2021-10-10 21:08:10 +03:00
parser Support let...else 2021-10-07 17:06:24 +02:00
paths Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00
proc_macro_api Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00
proc_macro_srv internal: update expect 2021-10-09 17:17:16 +03:00
proc_macro_test cargo_metadata 0.14 2021-07-09 11:01:55 -04:00
profile Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00
project_model Only include targets of packages that are workspace members 2021-10-11 18:28:05 -07:00
rust-analyzer Only include targets of packages that are workspace members 2021-10-11 18:28:05 -07:00
sourcegen Add semicolons for consistency 2021-10-03 23:39:43 +11:00
stdx Fix stdx::to_snake_case 2021-10-06 23:24:47 +02:00
syntax Merge #10506 2021-10-10 07:56:47 +00:00
test_utils internal: move tests 2021-10-10 12:39:58 +03:00
text_edit Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00
toolchain minor: drop dummy authors field 2021-07-05 14:19:41 +03:00
tt Replace if let with match where appropriate 2021-10-05 09:00:21 +11:00
vfs Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00
vfs-notify Fix miscellaneous Clippy lints 2021-10-03 23:53:30 +11:00