diff options
author | Jeremy Kolb <[email protected]> | 2019-01-12 23:40:54 +0000 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2019-01-12 23:40:54 +0000 |
commit | 5d273f10cdd4da6f0670b41b2fdad4679d3df877 (patch) | |
tree | 3d2ea73fd897e999eb274223f3cb5cdc17607a4f /crates/ra_lsp_server/src/cargo_target_spec.rs | |
parent | eb931c0d9e0877e573622253ae5b05563841037b (diff) |
Add bench runnable and code lens
Diffstat (limited to 'crates/ra_lsp_server/src/cargo_target_spec.rs')
-rw-r--r-- | crates/ra_lsp_server/src/cargo_target_spec.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/cargo_target_spec.rs b/crates/ra_lsp_server/src/cargo_target_spec.rs index a66f14b82..db9496bbe 100644 --- a/crates/ra_lsp_server/src/cargo_target_spec.rs +++ b/crates/ra_lsp_server/src/cargo_target_spec.rs | |||
@@ -32,6 +32,15 @@ pub(crate) fn runnable_args( | |||
32 | res.push(path.to_string()); | 32 | res.push(path.to_string()); |
33 | res.push("--nocapture".to_string()); | 33 | res.push("--nocapture".to_string()); |
34 | } | 34 | } |
35 | RunnableKind::Bench { name } => { | ||
36 | res.push("bench".to_string()); | ||
37 | if let Some(spec) = spec { | ||
38 | spec.push_to(&mut res); | ||
39 | } | ||
40 | res.push("--".to_string()); | ||
41 | res.push(name.to_string()); | ||
42 | res.push("--nocapture".to_string()); | ||
43 | } | ||
35 | RunnableKind::Bin => { | 44 | RunnableKind::Bin => { |
36 | res.push("run".to_string()); | 45 | res.push("run".to_string()); |
37 | if let Some(spec) = spec { | 46 | if let Some(spec) = spec { |