diff options
author | Aleksey Kladov <[email protected]> | 2018-10-25 08:29:39 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-25 08:29:39 +0100 |
commit | 0e359af291463ec9d4de6291777e9a0b3d74adea (patch) | |
tree | 70e8ac421a554d20176f44524ebb0db22ce3e50b | |
parent | 072260ffe89b278cd47d972f27c350a125bc75a5 (diff) |
Always add cargo check as a runnable
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 8 |
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>> { |