workspace: Support hot-exit for empty workspaces and single files (#46557)

Enables restoration of empty workspaces (without folders) that contain
unsaved items like drafts or single files. Empty workspaces are now
identified by workspace_id rather than paths, allowing multiple empty
workspaces to coexist and be properly restored on startup. This ensures
users don't lose work when closing Zed with unsaved files in empty
workspaces.

Closes #15098

Release Notes:

- Improved: Empty workspaces with unsaved files now restore on startup
(hot-exit)

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
e1c80f4706Feng committed on 1/23/2026, 3:04:09 PM· committed by GitHubparent9db7161
5 files changedLine totals unavailable