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

Function removeUndoContextComponents

apps/kimi-code/src/tui/commands/undo.ts:447–457  ·  view source on GitHub ↗
(
  children: Component[],
  startIndex: number,
)

Source from the content-addressed store, hash-verified

445}
446
447function removeUndoContextComponents(
448 children: Component[],
449 startIndex: number,
450): void {
451 for (let i = children.length - 1; i >= startIndex; i--) {
452 const child = children[i];
453 if (child !== undefined && isUndoContextComponent(child)) {
454 children.splice(i, 1);
455 }
456 }
457}
458
459function isUndoAnchorComponent(child: Component): boolean {
460 return (

Callers 1

undoByCountFunction · 0.85

Calls 1

isUndoContextComponentFunction · 0.85

Tested by

no test coverage detected