parent
d5711d44a5
commit
57198f33c4
2 changed files with 12 additions and 6 deletions
|
@ -2444,12 +2444,15 @@ impl AcpThreadView {
|
|||
.into_any()
|
||||
}
|
||||
|
||||
fn as_native_connection(&self, cx: &App) -> Option<Rc<agent2::NativeAgentConnection>> {
|
||||
pub(crate) fn as_native_connection(
|
||||
&self,
|
||||
cx: &App,
|
||||
) -> Option<Rc<agent2::NativeAgentConnection>> {
|
||||
let acp_thread = self.thread()?.read(cx);
|
||||
acp_thread.connection().clone().downcast()
|
||||
}
|
||||
|
||||
fn as_native_thread(&self, cx: &App) -> Option<Entity<agent2::Thread>> {
|
||||
pub(crate) fn as_native_thread(&self, cx: &App) -> Option<Entity<agent2::Thread>> {
|
||||
let acp_thread = self.thread()?.read(cx);
|
||||
self.as_native_connection(cx)?
|
||||
.thread(acp_thread.session_id(), cx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue