@@ -82,8 +82,8 @@ use crate::terminal::alt_screen_reporting::{
8282 AltScreenReporting , FocusReportingEnabled , MouseReportingEnabled , ScrollReportingEnabled ,
8383} ;
8484use crate :: terminal:: general_settings:: {
85- AutoOpenCodeReviewPaneOnFirstAgentChange , GeneralSettings , LinkTooltip , LoginItem ,
86- QuitOnLastWindowClosed , RestoreSession , ShowWarningBeforeQuitting ,
85+ GeneralSettings , LinkTooltip , LoginItem , QuitOnLastWindowClosed , RestoreSession ,
86+ ShowWarningBeforeQuitting ,
8787} ;
8888use crate :: terminal:: input:: OPEN_COMPLETIONS_KEYBINDING_NAME ;
8989use crate :: terminal:: keys_settings:: {
@@ -1419,8 +1419,6 @@ pub struct FeaturesPageView {
14191419 mouse_scroll_input_editor : ViewHandle < EditorView > ,
14201420 valid_mouse_scroll_multiplier : bool ,
14211421
1422- #[ cfg( feature = "local_fs" ) ]
1423- external_editor_view : ViewHandle < features:: ExternalEditorView > ,
14241422 word_boundary_editor : ViewHandle < EditorView > ,
14251423
14261424 tab_behavior_dropdown : ViewHandle < Dropdown < FeaturesPageAction > > ,
@@ -2466,9 +2464,6 @@ impl FeaturesPageView {
24662464 }
24672465 } ) ;
24682466
2469- #[ cfg( feature = "local_fs" ) ]
2470- let external_editor_view = ctx. add_typed_action_view ( features:: ExternalEditorView :: new) ;
2471-
24722467 let global_hotkey_mode =
24732468 KeysSettings :: handle ( ctx) . read ( ctx, |settings, ctx| settings. global_hotkey_mode ( ctx) ) ;
24742469 let global_hotkey_dropdown = ctx. add_typed_action_view ( |ctx| {
@@ -2730,8 +2725,6 @@ impl FeaturesPageView {
27302725 max_block_size_input_editor : block_size_editor,
27312726 valid_max_block_size : true ,
27322727
2733- #[ cfg( feature = "local_fs" ) ]
2734- external_editor_view,
27352728 word_boundary_editor,
27362729 global_hotkey_dropdown,
27372730
@@ -4857,28 +4850,6 @@ impl SettingsWidget for LinkTooltipWidget {
48574850 }
48584851}
48594852
4860- #[ cfg( feature = "local_fs" ) ]
4861- #[ derive( Default ) ]
4862- struct ExternalEditorWidget { }
4863-
4864- #[ cfg( feature = "local_fs" ) ]
4865- impl SettingsWidget for ExternalEditorWidget {
4866- type View = FeaturesPageView ;
4867-
4868- fn search_terms ( & self ) -> & str {
4869- "editor open files markdown AI conversations layout pane tab"
4870- }
4871-
4872- fn render (
4873- & self ,
4874- view : & Self :: View ,
4875- _appearance : & Appearance ,
4876- _app : & AppContext ,
4877- ) -> Box < dyn Element > {
4878- ChildView :: new ( & view. external_editor_view ) . finish ( )
4879- }
4880- }
4881-
48824853#[ derive( Default ) ]
48834854struct QuitWarningModalWidget {
48844855 switch_state : SwitchStateHandle ,
@@ -5157,53 +5128,6 @@ impl SettingsWidget for MouseScrollMultiplierWidget {
51575128 }
51585129}
51595130
5160- #[ derive( Default ) ]
5161- struct AutoOpenCodeReviewPaneWidget {
5162- switch_state : SwitchStateHandle ,
5163- }
5164-
5165- impl SettingsWidget for AutoOpenCodeReviewPaneWidget {
5166- type View = FeaturesPageView ;
5167-
5168- fn search_terms ( & self ) -> & str {
5169- "oz auto open code review pane panel agent mode change first time accepted diff view conversation"
5170- }
5171-
5172- fn render (
5173- & self ,
5174- view : & Self :: View ,
5175- appearance : & Appearance ,
5176- app : & AppContext ,
5177- ) -> Box < dyn Element > {
5178- let general_settings = GeneralSettings :: as_ref ( app) ;
5179- let ui_builder = appearance. ui_builder ( ) ;
5180- render_body_item :: < FeaturesPageAction > (
5181- "Auto open code review panel" . into ( ) ,
5182- None ,
5183- LocalOnlyIconState :: for_setting (
5184- AutoOpenCodeReviewPaneOnFirstAgentChange :: storage_key ( ) ,
5185- AutoOpenCodeReviewPaneOnFirstAgentChange :: sync_to_cloud ( ) ,
5186- & mut view
5187- . button_mouse_states
5188- . local_only_icon_tooltip_states
5189- . borrow_mut ( ) ,
5190- app,
5191- ) ,
5192- ToggleState :: Enabled ,
5193- appearance,
5194- ui_builder
5195- . switch ( self . switch_state . clone ( ) )
5196- . check ( * general_settings. auto_open_code_review_pane_on_first_agent_change )
5197- . build ( )
5198- . on_click ( move |ctx, _, _| {
5199- ctx. dispatch_typed_action ( FeaturesPageAction :: ToggleAutoOpenCodeReviewPane ) ;
5200- } )
5201- . finish ( ) ,
5202- Some ( "When this setting is on, the code review panel will open on the first accepted diff of a conversation" . into ( ) ) ,
5203- )
5204- }
5205- }
5206-
52075131#[ derive( Default ) ]
52085132struct DefaultTerminalWidget {
52095133 link_state : MouseStateHandle ,
0 commit comments