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

Function finish

packages/pi-tui/src/autocomplete.ts:170–175  ·  view source on GitHub ↗
(results: Array<{ path: string; isDirectory: boolean }>)

Source from the content-addressed store, hash-verified

168 let resolved = false;
169
170 const finish = (results: Array<{ path: string; isDirectory: boolean }>) => {
171 if (resolved) return;
172 resolved = true;
173 signal.removeEventListener("abort", onAbort);
174 resolve(results);
175 };
176
177 const onAbort = () => {
178 if (child.exitCode === null) {

Callers 1

walkDirectoryWithFdFunction · 0.70

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected