mirror of
https://github.com/zed-industries/zed.git
synced 2026-12-02 21:40:41 +01:00
acp: Remove feature flag for session config options (#48350)
Release Notes: - acp: Support ACP Session Config options for agents which provide them.
This commit is contained in:
@@ -963,7 +963,7 @@ fn mcp_servers_for_project(project: &Entity<Project>, cx: &App) -> Vec<acp::McpS
|
||||
}
|
||||
|
||||
fn config_state(
|
||||
cx: &App,
|
||||
_cx: &App,
|
||||
modes: Option<acp::SessionModeState>,
|
||||
models: Option<acp::SessionModelState>,
|
||||
config_options: Option<Vec<acp::SessionConfigOption>>,
|
||||
@@ -972,9 +972,7 @@ fn config_state(
|
||||
Option<Rc<RefCell<acp::SessionModelState>>>,
|
||||
Option<Rc<RefCell<Vec<acp::SessionConfigOption>>>>,
|
||||
) {
|
||||
if cx.has_flag::<AcpBetaFeatureFlag>()
|
||||
&& let Some(opts) = config_options
|
||||
{
|
||||
if let Some(opts) = config_options {
|
||||
return (None, None, Some(Rc::new(RefCell::new(opts))));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user