Enable unsaved buffer persistence for worktree-less windows - #44276
Enable unsaved buffer persistence for worktree-less windows#44276luukverhoeven wants to merge 2 commits into
Conversation
…stries#15098) Previously, unsaved buffers in empty windows (no project open) or single file editing sessions were not persisted across restarts. This change enables the hot-exit functionality for these scenarios by: - Always serializing dirty buffers regardless of worktree presence - Including empty workspaces in session serialization - Removing the DetachFromSession behavior for local empty windows
|
We require contributors to sign our Contributor License Agreement, and we don't have @luukverhoeven on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'. |
|
I pushed a fix for the dead code issue. You'll need to sign the CLA at https://zed.dev/cla and then comment Regarding the implementation itself, I have a question about how empty workspaces are identified. Currently, workspaces are looked up by their paths: WHERE paths IS ? AND remote_connection_id IS ?With this change, empty workspaces would serialize with
So I think we need to figure out the intended behavior:
What do you think? |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
Is PR #46557 trying to solve the same problem? |
|
This seems very stale, at least no one had thought on it since the question in 2025 above, hence I'll close. |
Closes #15098.
Previously, unsaved buffers in empty windows (no project open) or single file editing sessions were not persisted across restarts. This change enables the hot-exit functionality for these scenarios by:
Release Notes:
(#15098)