Always add cargo check as a runnable

This commit is contained in:
Aleksey Kladov 2018-10-25 10:29:39 +03:00
parent 072260ffe8
commit 0e359af291

View File

@ -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<Vec<String>> {