From 0e359af291463ec9d4de6291777e9a0b3d74adea Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 25 Oct 2018 10:29:39 +0300 Subject: Always add cargo check as a runnable --- crates/ra_lsp_server/src/main_loop/handlers.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crates/ra_lsp_server/src') 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( }; res.push(r); } + // Always add `cargo check`. + res.push(req::Runnable { + range: Default::default(), + label: "cargo check".to_string(), + bin: "cargo".to_string(), + args: vec!["check".to_string(), "--all".to_string()], + env: FxHashMap::default(), + }); return Ok(res); fn runnable_args(world: &ServerWorld, file_id: FileId, kind: &RunnableKind) -> Result> { -- cgit v1.2.3