thread view: Add link to docs in the toolbar plus menu (#36883)
Release Notes: - N/A
This commit is contained in:
parent
1d96a7af39
commit
d0471d4fea
2 changed files with 11 additions and 1 deletions
|
@ -9,6 +9,7 @@ use agent_servers::AgentServerSettings;
|
||||||
use agent2::{DbThreadMetadata, HistoryEntry};
|
use agent2::{DbThreadMetadata, HistoryEntry};
|
||||||
use db::kvp::{Dismissable, KEY_VALUE_STORE};
|
use db::kvp::{Dismissable, KEY_VALUE_STORE};
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
use zed_actions::OpenBrowser;
|
||||||
use zed_actions::agent::ReauthenticateAgent;
|
use zed_actions::agent::ReauthenticateAgent;
|
||||||
|
|
||||||
use crate::acp::{AcpThreadHistory, ThreadHistoryEvent};
|
use crate::acp::{AcpThreadHistory, ThreadHistoryEvent};
|
||||||
|
@ -2689,6 +2690,15 @@ impl AgentPanel {
|
||||||
}
|
}
|
||||||
|
|
||||||
menu
|
menu
|
||||||
|
})
|
||||||
|
.when(cx.has_flag::<GeminiAndNativeFeatureFlag>(), |menu| {
|
||||||
|
menu.separator().link(
|
||||||
|
"Add Your Own Agent",
|
||||||
|
OpenBrowser {
|
||||||
|
url: "https://agentclientprotocol.com/".into(),
|
||||||
|
}
|
||||||
|
.boxed_clone(),
|
||||||
|
)
|
||||||
});
|
});
|
||||||
menu
|
menu
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -561,7 +561,7 @@ impl ContextMenu {
|
||||||
action: Some(action.boxed_clone()),
|
action: Some(action.boxed_clone()),
|
||||||
handler: Rc::new(move |_, window, cx| window.dispatch_action(action.boxed_clone(), cx)),
|
handler: Rc::new(move |_, window, cx| window.dispatch_action(action.boxed_clone(), cx)),
|
||||||
icon: Some(IconName::ArrowUpRight),
|
icon: Some(IconName::ArrowUpRight),
|
||||||
icon_size: IconSize::Small,
|
icon_size: IconSize::XSmall,
|
||||||
icon_position: IconPosition::End,
|
icon_position: IconPosition::End,
|
||||||
icon_color: None,
|
icon_color: None,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue