mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Fix "Run | Debug" lens for examples
This commit is contained in:
parent
ca31b1d63a
commit
05e6cbf310
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