Add a test

co-authored-by: Mikayla <mikayla@zed.dev>
This commit is contained in:
Kirill Bulatov
2023-05-27 01:12:22 +03:00
co-authored by Mikayla
parent cf2bbfc85a
commit 3a3c1c5a5b
4 changed files with 235 additions and 55 deletions
+1 -1
View File
@@ -3218,7 +3218,7 @@ impl Project {
) -> Result<(), anyhow::Error> {
let (worktree, relative_path) = self
.find_local_worktree(&abs_path, cx)
.ok_or_else(|| anyhow!("no worktree found for diagnostics"))?;
.ok_or_else(|| anyhow!("no worktree found for diagnostics path {abs_path:?}"))?;
let project_path = ProjectPath {
worktree_id: worktree.read(cx).id(),