agent: Move ActiveThread
and MessageEditor
into ActiveView
(#33462)
`ActiveThread` and `MessageEditor` only make sense when `active_view` is `Thread`, so we moved them in there. This will make it easier to work on new agent threads. Release Notes: - N/A --------- Co-authored-by: Antonio Scandurra <me@as-cii.com> Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
This commit is contained in:
parent
f4818b648e
commit
8a1e795746
3 changed files with 359 additions and 357 deletions
|
@ -661,7 +661,7 @@ fn recent_context_picker_entries(
|
|||
|
||||
let active_thread_id = workspace
|
||||
.panel::<AgentPanel>(cx)
|
||||
.and_then(|panel| Some(panel.read(cx).active_thread()?.read(cx).id()));
|
||||
.and_then(|panel| Some(panel.read(cx).active_thread(cx)?.read(cx).id()));
|
||||
|
||||
if let Some((thread_store, text_thread_store)) = thread_store
|
||||
.and_then(|store| store.upgrade())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue