Reuse prompt editor across buffer and terminal assist (#22188)

Builds on https://github.com/zed-industries/zed/pull/22160 and extracts
the rest of `PromptEditor` so it can be shared across terminal and
inline assistants. This will help avoid the UI drifting as we have
already observed.

Note: This is mostly a mechanical refactor. I imagine some things could
be factored in a better way by someone with more context, but I think
this is a good start.

Release Notes:

- N/A

---------

Co-authored-by: Richard Feldman <oss@rtfeldman.com>
This commit is contained in:
Agus Zubiaga 2024-12-18 18:12:54 -03:00 committed by GitHub
parent fc00eaa161
commit 56d20fc0a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 2801 additions and 2919 deletions

View file

@ -1,6 +1,7 @@
mod active_thread;
mod assistant_panel;
mod assistant_settings;
mod buffer_codegen;
mod context;
mod context_picker;
mod context_store;
@ -10,6 +11,7 @@ mod inline_prompt_editor;
mod message_editor;
mod prompts;
mod streaming_diff;
mod terminal_codegen;
mod terminal_inline_assistant;
mod thread;
mod thread_history;