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

Method mountEditorReplacement

apps/kimi-code/src/tui/kimi-tui.ts:2590–2595  ·  view source on GitHub ↗
(panel: Component & Focusable)

Source from the content-addressed store, hash-verified

2588 // =========================================================================
2589
2590 mountEditorReplacement(panel: Component & Focusable): void {
2591 this.state.editorContainer.clear();
2592 this.state.editorContainer.addChild(panel);
2593 this.state.ui.setFocus(panel);
2594 this.state.ui.requestRender();
2595 }
2596
2597 restoreEditor(): void {
2598 this.state.editorContainer.clear();

Callers 5

runMigrationScreenMethod · 0.95
showHelpPanelMethod · 0.95
mountSessionPickerMethod · 0.95
showApprovalPanelMethod · 0.95
showQuestionDialogMethod · 0.95

Calls 4

setFocusMethod · 0.80
clearMethod · 0.65
requestRenderMethod · 0.65
addChildMethod · 0.45

Tested by

no test coverage detected