mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Improve documentation for InvocationStrategy
This commit is contained in:
parent
0c395dc5a4
commit
3c4cdbbd1a
5 changed files with 29 additions and 23 deletions
|
@ -459,7 +459,7 @@ impl ProjectWorkspace {
|
|||
workspaces: &[ProjectWorkspace],
|
||||
config: &CargoConfig,
|
||||
progress: &dyn Fn(String),
|
||||
workspace_root: &AbsPathBuf,
|
||||
working_directory: &AbsPathBuf,
|
||||
) -> Vec<anyhow::Result<WorkspaceBuildScripts>> {
|
||||
if matches!(config.invocation_strategy, InvocationStrategy::PerWorkspace)
|
||||
|| config.run_build_script_command.is_none()
|
||||
|
@ -474,13 +474,16 @@ impl ProjectWorkspace {
|
|||
_ => None,
|
||||
})
|
||||
.collect();
|
||||
let outputs =
|
||||
&mut match WorkspaceBuildScripts::run_once(config, &cargo_ws, progress, workspace_root)
|
||||
{
|
||||
Ok(it) => Ok(it.into_iter()),
|
||||
// io::Error is not Clone?
|
||||
Err(e) => Err(sync::Arc::new(e)),
|
||||
};
|
||||
let outputs = &mut match WorkspaceBuildScripts::run_once(
|
||||
config,
|
||||
&cargo_ws,
|
||||
progress,
|
||||
working_directory,
|
||||
) {
|
||||
Ok(it) => Ok(it.into_iter()),
|
||||
// io::Error is not Clone?
|
||||
Err(e) => Err(sync::Arc::new(e)),
|
||||
};
|
||||
|
||||
workspaces
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue