ZIm/crates/workspace/src
Thorsten Ball 037cf1393c
assistant: Undo workflow step when buffer is discarded (#16465)
This fixes a weird bug:

1. Use `/workflow` in assistant
2. Have it generate a step that modifies a file
3. Either (a) select the step in the assistant and have it auto-insert
newlines (b) select "Transform" to have the step applied
4. Close the modified file in the editor ("Discard")
5. Re-open the file
6. BUG: the changes made by assistant are still there!

The reason for the bug is that the assistant keeps references to buffers
and they're not closed/reloaded when closed/reopened.

To fix the bug we now rollback the applied workflow steps when
discarding a buffer.

(This does *not* yet fix the issue where a workflow step inserts a new
buffer into the project/worktree that does not show up on the file
system yet but in `/file` and hangs around until Zed is closed.)


Release Notes:

- N/A

Co-authored-by: Bennet <bennet@zed.dev>
2024-08-19 18:42:49 +02:00
..
persistence zed: Persist window stack order across restarts (#15419) 2024-07-29 17:05:56 +02:00
dock.rs Introduce following for assistant panel (#14479) 2024-07-15 11:36:27 +02:00
item.rs assistant: Undo workflow step when buffer is discarded (#16465) 2024-08-19 18:42:49 +02:00
modal_layer.rs Use ui::prelude::* in a few more spots (#14807) 2024-07-19 08:57:51 -04:00
notifications.rs Copy/paste images into editors (Mac only) (#15782) 2024-08-13 13:18:25 -04:00
pane.rs assistant: Undo workflow step when buffer is discarded (#16465) 2024-08-19 18:42:49 +02:00
pane_group.rs Introduce following for assistant panel (#14479) 2024-07-15 11:36:27 +02:00
persistence.rs zed: Persist window stack order across restarts (#15419) 2024-07-29 17:05:56 +02:00
searchable.rs search: Improve performance of replace_all (#13654) 2024-06-28 19:06:44 +02:00
shared_screen.rs Copy/paste images into editors (Mac only) (#15782) 2024-08-13 13:18:25 -04:00
status_bar.rs Add a setting to show time to first window draw and frames per second in status bar (#16422) 2024-08-18 15:22:19 -06:00
tasks.rs Extend task templates with shell and hide fields to use custom shells and custom close behavior (#15031) 2024-07-23 22:58:36 +03:00
toolbar.rs assistant: Show regenerate button only on hover (#15972) 2024-08-08 13:08:57 +02:00
workspace.rs Fixed bugs in workflow step preview (#16445) 2024-08-18 22:18:04 -07:00
workspace_settings.rs Use US English spelling of "behavior" and "customize" (#15117) 2024-07-24 16:36:01 -04:00