Tidy up single-file worktrees' opening errors (#44455)

Part of https://github.com/zed-industries/zed/issues/44370

Also log when fail to open the project item.

Release Notes:

- N/A
This commit is contained in:
Kirill Bulatov
2025-12-09 07:50:10 +00:00
committed by GitHub
parent dc5f54eaf9
commit 0b4f72e549
4 changed files with 17 additions and 121 deletions
+1
View File
@@ -675,6 +675,7 @@ impl ProjectItemRegistry {
Ok((project_entry_id, build_workspace_item))
}
Err(e) => {
log::warn!("Failed to open a project item: {e:#}");
if e.error_code() == ErrorCode::Internal {
if let Some(abs_path) =
entry_abs_path.as_deref().filter(|_| is_file)