(host: SlashCommandHost)
| 282 | // --------------------------------------------------------------------------- |
| 283 | |
| 284 | function showEditorPicker(host: SlashCommandHost): void { |
| 285 | const currentValue = host.state.appState.editorCommand ?? ''; |
| 286 | host.mountEditorReplacement( |
| 287 | new EditorSelectorComponent({ |
| 288 | currentValue, |
| 289 | onSelect: (value) => { |
| 290 | host.restoreEditor(); |
| 291 | void applyEditorChoice(host, value); |
| 292 | }, |
| 293 | onCancel: () => { |
| 294 | host.restoreEditor(); |
| 295 | }, |
| 296 | }), |
| 297 | ); |
| 298 | } |
| 299 | |
| 300 | async function refreshModelsForPicker(host: SlashCommandHost): Promise<void> { |
| 301 | try { |
no test coverage detected