range: Default::default(),
label: format!("cargo {} -p {}", cmd, spec.package),
bin: "cargo".to_string(),
- args: {
- let mut args = vec![cmd.to_string()];
- spec.clone().push_to(&mut args);
- args
- },
+ args: vec![cmd.to_string(), "--package".to_string(), spec.package.clone()],
extra_args: Vec::new(),
env: FxHashMap::default(),
cwd: workspace_root.map(|root| root.to_owned()),
"cwd": server.path().join("foo")
},
{
- "args": [ "check", "--package", "foo", "--test", "spam" ],
+ "args": [ "check", "--package", "foo" ],
"extraArgs": [],
"bin": "cargo",
"env": {},
"cwd": server.path().join("foo")
},
{
- "args": [ "test", "--package", "foo", "--test", "spam" ],
+ "args": [ "test", "--package", "foo" ],
"extraArgs": [],
"bin": "cargo",
"env": {},