mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
Always add cargo check as a runnable
This commit is contained in:
parent
072260ffe8
commit
0e359af291
@ -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>> {
|
||||
|
Loading…
Reference in New Issue
Block a user