Authentication editor component
| 284 | api_key_location_select, |
| 285 | focus_handle: cx.focus_handle(), |
| 286 | completion_engine, |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | /// Initialize inputs lazily |
| 291 | fn ensure_inputs(&mut self, window: &mut Window, cx: &mut Context<Self>) { |
| 292 | if self.username_input.is_none() { |
| 293 | let completion_engine = self.completion_engine.clone(); |
| 294 | self.username_input = Some(cx.new(|cx| { |
| 295 | configure_completion( |
| 296 | InputState::new(window, cx).placeholder("Username"), |
| 297 | completion_engine.as_ref(), |
| 298 | CompletionContext::Auth, |
| 299 | ) |
| 300 | })); |
| 301 | let completion_engine = self.completion_engine.clone(); |
| 302 | self.password_input = Some(cx.new(|cx| { |
| 303 | configure_completion( |
| 304 | InputState::new(window, cx).placeholder("Password"), |
nothing calls this directly
no outgoing calls
no test coverage detected