Skip to content

Commit 05e6cbf

Browse files
committed
Fix "Run | Debug" lens for examples
1 parent ca31b1d commit 05e6cbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust-analyzer/src/handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ fn should_skip_target(runnable: &Runnable, cargo_spec: Option<&CargoTargetSpec>)
12831283
RunnableKind::Bin => {
12841284
// Do not suggest binary run on other target than binary
12851285
match &cargo_spec {
1286-
Some(spec) => spec.target_kind != TargetKind::Bin,
1286+
Some(spec) => !matches!(spec.target_kind, TargetKind::Bin | TargetKind::Example),
12871287
None => true,
12881288
}
12891289
}

0 commit comments

Comments
 (0)