()
| 214 | api_key_name_input: Option<gpui::Entity<InputState>>, |
| 215 | api_key_value_input: Option<gpui::Entity<InputState>>, |
| 216 | api_key_location: ApiKeyLocation, |
| 217 | api_key_location_select: Entity<SelectState<Vec<ApiKeyLocation>>>, |
| 218 | |
| 219 | focus_handle: FocusHandle, |
| 220 | completion_engine: Option<CompletionEngine>, |
| 221 | } |
| 222 | |
| 223 | impl AuthEditor { |
| 224 | pub fn new( |
| 225 | window: &mut Window, |
| 226 | completion_engine: Option<CompletionEngine>, |
| 227 | cx: &mut Context<Self>, |
| 228 | ) -> Self { |
| 229 | // Create auth type select state |
| 230 | let auth_type_items: Vec<AuthType> = AuthType::all().to_vec(); |
| 231 | let auth_type_select = cx.new(|cx| { |
| 232 | SelectState::new( |
| 233 | auth_type_items, |
| 234 | Some(gpui_component::IndexPath::new(0)), |
nothing calls this directly
no outgoing calls
no test coverage detected