Files
oak-gpui/assets/icons
411f64b374 Restructure assistant edits to show all changes in a proposed-change editor (#18240)
This changes the `/workflow` command so that instead of emitting edits
in separate steps, the user is presented with a single tab, with an
editable diff that they can apply to the buffer.

Todo

* Assistant panel
* [x] Show a patch title and a list of changed files in a block
decoration
* [x] Don't store resolved patches as state on Context. Resolve on
demand.
    * [ ] Better presentation of patches in the panel
    * [ ] Show a spinner while patch is streaming in
* Patches
* [x] Preserve leading whitespace in new text, auto-indent insertions
    * [x] Ensure patch title is very short, to fit better in tab
* [x] Improve patch location resolution, prefer skipping whitespace over
skipping `}`
    * [x] Ensure patch edits are auto-indented properly
* [ ] Apply `Update` edits via a diff between the old and new text, to
get fine-grained edits.
* Proposed changes editor
    * [x] Show patch title in the tab
    * [x] Add a toolbar with an "Apply all" button
* [x] Make `open excerpts` open the corresponding location in the base
buffer (https://github.com/zed-industries/zed/pull/18591)
* [x] Add an apply button above every hunk
(https://github.com/zed-industries/zed/pull/18592)
* [x] Expand all diff hunks by default
(https://github.com/zed-industries/zed/pull/18598)
    * [x] Fix https://github.com/zed-industries/zed/issues/18589
* [x] Syntax highlighting doesn't work until the buffer is edited
(https://github.com/zed-industries/zed/pull/18648)
* [x] Disable LSP interaction in Proposed Changes editor
(https://github.com/zed-industries/zed/pull/18945)
* [x] No auto-indent? (https://github.com/zed-industries/zed/pull/18984)
* Prompt
    * [ ] make sure old_text is unique

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
Co-authored-by: Antonio <antonio@zed.dev>
Co-authored-by: Richard <richard@zed.dev>
Co-authored-by: Marshall <marshall@zed.dev>
Co-authored-by: Nate Butler <iamnbutler@gmail.com>
Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
2024-10-17 13:18:13 -04:00
..
2024-08-12 09:55:00 -04:00
2024-08-12 09:55:00 -04:00
2024-08-01 21:57:51 -04:00
2024-08-01 21:57:51 -04:00
kb
2023-11-20 10:46:23 -05:00
kb
2023-11-20 10:46:23 -05:00
kb
2023-11-20 10:46:23 -05:00
kb
2023-11-20 10:46:23 -05:00
2024-01-03 11:45:41 -05:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-06-25 11:43:30 -04:00
2024-09-13 21:12:29 -04:00
2023-08-14 15:50:42 -04:00
2023-08-14 15:50:42 -04:00
2023-08-14 15:50:42 -04:00
2023-08-14 15:50:42 -04:00
2024-09-13 21:12:29 -04:00
kb
2023-11-20 10:46:23 -05:00
2024-06-11 12:39:45 +02:00
kb
2023-11-20 10:46:23 -05:00
2023-08-14 15:50:42 -04:00
2023-12-01 15:30:01 -05:00
2024-09-16 00:24:18 -04:00
2023-11-05 01:06:41 -05:00
2023-08-16 13:48:12 -04:00
2024-09-13 21:12:29 -04:00
2024-07-26 11:08:42 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2023-08-14 15:50:42 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
2024-06-26 13:02:58 -04:00
2023-12-18 12:56:57 -05:00
2023-08-14 15:57:31 -04:00
2024-05-07 16:36:13 -04:00
2024-05-07 16:36:13 -04:00
2023-08-16 23:38:11 +03:00
2024-05-16 16:55:54 -04:00
2023-10-17 13:34:51 -04:00
2023-08-14 15:50:42 -04:00
2024-04-23 13:31:21 -04:00
2023-12-19 10:30:46 -05:00
2024-09-13 21:12:29 -04:00
2024-01-03 11:45:41 -05:00
kb
2023-11-20 10:46:23 -05:00
2024-01-03 11:45:41 -05:00
2024-01-03 11:45:41 -05:00
2024-04-11 18:36:58 +02:00
2024-09-05 16:00:32 -03:00
2023-10-17 13:30:09 -06:00
2023-12-19 10:30:46 -05:00
2024-04-11 23:07:29 -06:00
2024-06-18 12:16:54 -07:00
2024-09-13 21:12:29 -04:00
2024-04-23 15:33:09 -06:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00
kb
2023-11-20 10:46:23 -05:00
2023-12-19 10:30:46 -05:00
2024-01-03 11:45:41 -05:00
2023-08-14 15:50:42 -04:00
2024-05-07 16:36:13 -04:00
2024-05-03 12:50:42 -07:00
2024-05-03 12:50:42 -07:00
2024-05-03 12:50:42 -07:00
2024-05-03 12:50:42 -07:00
2024-09-16 00:24:18 -04:00
2024-04-23 13:31:21 -04:00
2024-09-05 16:00:32 -03:00
2023-10-16 15:53:29 -04:00
2024-09-13 21:12:29 -04:00
2024-06-26 13:02:58 -04:00
2023-11-18 00:54:01 -05:00
2024-09-13 21:12:29 -04:00
2024-09-13 21:12:29 -04:00