Fix "Run | Debug" lens for examples
This commit is contained in:
@@ -1283,7 +1283,7 @@ fn should_skip_target(runnable: &Runnable, cargo_spec: Option<&CargoTargetSpec>)
|
|||||||
RunnableKind::Bin => {
|
RunnableKind::Bin => {
|
||||||
// Do not suggest binary run on other target than binary
|
// Do not suggest binary run on other target than binary
|
||||||
match &cargo_spec {
|
match &cargo_spec {
|
||||||
Some(spec) => spec.target_kind != TargetKind::Bin,
|
Some(spec) => !matches!(spec.target_kind, TargetKind::Bin | TargetKind::Example),
|
||||||
None => true,
|
None => true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user