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

Function showEditorPicker

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

Source from the content-addressed store, hash-verified

282// ---------------------------------------------------------------------------
283
284function 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
300async function refreshModelsForPicker(host: SlashCommandHost): Promise<void> {
301 try {

Callers 2

handleEditorCommandFunction · 0.85
handleSettingsSelectionFunction · 0.85

Calls 3

applyEditorChoiceFunction · 0.85
restoreEditorMethod · 0.65

Tested by

no test coverage detected