Fix excluded file creation (#12620)

Fixes https://github.com/zed-industries/zed/issues/10890

* removes `unwrap()` that caused panics for text elements with no text,
remaining after edit state is cleared but project entries are not
updated, having the fake, "new entry"
* improves discoverability of the FS errors during file/directory
creation: now those are shown as workspace notifications
* stops printing anyhow backtraces in workspace notifications, printing
the more readable chain of contexts instead
* better indicates when new entries are created as excluded ones


Release Notes:

- Improve excluded entry creation workflow in the project panel
([10890](https://github.com/zed-industries/zed/issues/10890))
This commit is contained in:
Kirill Bulatov
2024-06-04 10:31:43 +03:00
committed by GitHub
parent edd613062a
commit 47122a3115
12 changed files with 447 additions and 58 deletions
Generated
+2
View File
@@ -2404,6 +2404,7 @@ dependencies = [
"util",
"uuid",
"workspace",
"worktree",
]
[[package]]
@@ -7825,6 +7826,7 @@ dependencies = [
"unicase",
"util",
"workspace",
"worktree",
]
[[package]]