mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
Merge #5122
5122: Fix "Run | Debug" lens for examples r=matklad a=vsrs Fixes #4974 Co-authored-by: vsrs <vit@conrlab.com>
This commit is contained in:
commit
86f1556f7c
1 changed files with 1 additions and 1 deletions
|
@ -1283,7 +1283,7 @@ fn should_skip_target(runnable: &Runnable, cargo_spec: Option<&CargoTargetSpec>)
|
|||
RunnableKind::Bin => {
|
||||
// Do not suggest binary run on other target than binary
|
||||
match &cargo_spec {
|
||||
Some(spec) => spec.target_kind != TargetKind::Bin,
|
||||
Some(spec) => !matches!(spec.target_kind, TargetKind::Bin | TargetKind::Example),
|
||||
None => true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue