( host: SlashCommandHost, features: readonly ExperimentalFeatureState[], )
| 622 | } |
| 623 | |
| 624 | function mountExperimentsPanel( |
| 625 | host: SlashCommandHost, |
| 626 | features: readonly ExperimentalFeatureState[], |
| 627 | ): void { |
| 628 | host.mountEditorReplacement( |
| 629 | new ExperimentsSelectorComponent({ |
| 630 | features, |
| 631 | onApply: (changes) => { |
| 632 | void applyExperimentalFeatureChanges(host, changes); |
| 633 | }, |
| 634 | onCancel: () => { |
| 635 | host.restoreEditor(); |
| 636 | }, |
| 637 | }), |
| 638 | ); |
| 639 | } |
| 640 | |
| 641 | type UpdatePreferenceHost = { |
| 642 | readonly state: { |
no test coverage detected