aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/ra_lsp_server/src/main_loop/handlers.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs
index b27b5d007..fa7179cd8 100644
--- a/crates/ra_lsp_server/src/main_loop/handlers.rs
+++ b/crates/ra_lsp_server/src/main_loop/handlers.rs
@@ -268,6 +268,14 @@ pub fn handle_runnables(
268 }; 268 };
269 res.push(r); 269 res.push(r);
270 } 270 }
271 // Always add `cargo check`.
272 res.push(req::Runnable {
273 range: Default::default(),
274 label: "cargo check".to_string(),
275 bin: "cargo".to_string(),
276 args: vec!["check".to_string(), "--all".to_string()],
277 env: FxHashMap::default(),
278 });
271 return Ok(res); 279 return Ok(res);
272 280
273 fn runnable_args(world: &ServerWorld, file_id: FileId, kind: &RunnableKind) -> Result<Vec<String>> { 281 fn runnable_args(world: &ServerWorld, file_id: FileId, kind: &RunnableKind) -> Result<Vec<String>> {