zed/crates/settings_ui
Eric Holk bc84d80ea7
settings_ui: Gate CLI open behavior setting on feature flag (#53964)
The `cli_default_open_behavior` setting controls how `zed <path>` opens
directories, but the underlying behavior is gated behind the
`AgentV2FeatureFlag` in `open_listener.rs`. Without the flag enabled,
the setting has no effect — Zed always falls back to `NewWindow`
behavior.

This change gates the settings UI entry behind the same feature flag so
it only appears when the feature is actually active.

**Changes:**
- Converted `general_settings_section()` from a fixed-size array to a
`Vec` so the CLI setting can be conditionally appended
- Added `feature_flags` as a dependency to `settings_ui`

Release Notes:

- N/A
2026-04-15 01:10:36 -07:00
..
src settings_ui: Gate CLI open behavior setting on feature flag (#53964) 2026-04-15 01:10:36 -07:00
Cargo.toml settings_ui: Gate CLI open behavior setting on feature flag (#53964) 2026-04-15 01:10:36 -07:00
LICENSE-GPL Start up settings UI 2 (#38673) 2025-09-24 15:45:14 +00:00