MCPcopy Index your code
hub / github.com/codeaashu/claude-code / onSpawn

Function onSpawn

src/services/lsp/LSPClient.ts:117–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 const spawnedProcess = process // Capture for closure
116 await new Promise<void>((resolve, reject) => {
117 const onSpawn = (): void => {
118 cleanup()
119 resolve()
120 }
121 const onError = (error: Error): void => {
122 cleanup()
123 reject(error)

Callers

nothing calls this directly

Calls 2

cleanupFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected