ZIm/crates/workspace/src
Antonio Scandurra a15a9565ab
Accept finished inline transformations only if the user saves manually (#16112)
Closes https://github.com/zed-industries/zed/issues/16042

This commit modifies the behavior of inline transformations to only
accept finished transformations when the user manually saves the file.
Previously, transformations were automatically accepted on any save
event, including autosaves.

This was achieved by updating the `Pane` and `Workspace` structs to emit
a new `UserSavedItem` event when a manual save occurs, and modifying the
`InlineAssistant` to register and handle this new event (instead of
`editor::Saved`).

Release Notes:

- N/A
2024-08-12 15:16:55 +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 Accept finished inline transformations only if the user saves manually (#16112) 2024-08-12 15:16:55 +02:00
modal_layer.rs Use ui::prelude::* in a few more spots (#14807) 2024-07-19 08:57:51 -04:00
notifications.rs SSH remote ui (#15129) 2024-07-26 16:45:44 -06:00
pane.rs Accept finished inline transformations only if the user saves manually (#16112) 2024-08-12 15:16:55 +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 Simplify constructing tab content that is purely textual (#14695) 2024-07-17 20:11:05 -04:00
status_bar.rs Fix transparency (#14010) 2024-07-09 12:11:18 -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 Accept finished inline transformations only if the user saves manually (#16112) 2024-08-12 15:16:55 +02:00
workspace_settings.rs Use US English spelling of "behavior" and "customize" (#15117) 2024-07-24 16:36:01 -04:00