(host: SlashCommandHost)
| 697 | } |
| 698 | |
| 699 | export function showSettingsSelector(host: SlashCommandHost): void { |
| 700 | host.mountEditorReplacement( |
| 701 | new SettingsSelectorComponent({ |
| 702 | onSelect: (value) => { |
| 703 | handleSettingsSelection(host, value); |
| 704 | }, |
| 705 | onCancel: () => { |
| 706 | host.restoreEditor(); |
| 707 | }, |
| 708 | }), |
| 709 | ); |
| 710 | } |
| 711 | |
| 712 | function handleSettingsSelection(host: SlashCommandHost, value: SettingsSelection): void { |
| 713 | host.restoreEditor(); |
no test coverage detected