MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / showSettingsSelector

Function showSettingsSelector

apps/kimi-code/src/tui/commands/config.ts:699–710  ·  view source on GitHub ↗
(host: SlashCommandHost)

Source from the content-addressed store, hash-verified

697}
698
699export 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
712function handleSettingsSelection(host: SlashCommandHost, value: SettingsSelection): void {
713 host.restoreEditor();

Callers 1

Calls 3

handleSettingsSelectionFunction · 0.85
restoreEditorMethod · 0.65

Tested by

no test coverage detected