mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
fix: ensure that ws loading error includes path to ws
This commit is contained in:
parent
00b9d9faf4
commit
49318bbae7
4 changed files with 30 additions and 2 deletions
|
@ -151,6 +151,15 @@ impl ProjectWorkspace {
|
|||
manifest: ProjectManifest,
|
||||
config: &CargoConfig,
|
||||
progress: &dyn Fn(String),
|
||||
) -> Result<ProjectWorkspace> {
|
||||
ProjectWorkspace::load_inner(&manifest, config, progress)
|
||||
.with_context(|| format!("Failed to load the project at {manifest}"))
|
||||
}
|
||||
|
||||
fn load_inner(
|
||||
manifest: &ProjectManifest,
|
||||
config: &CargoConfig,
|
||||
progress: &dyn Fn(String),
|
||||
) -> Result<ProjectWorkspace> {
|
||||
let version = |current_dir, cmd_path, prefix: &str| {
|
||||
let cargo_version = utf8_stdout({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue