MCPcopy Index your code
hub / github.com/coder/code-server / isChild

Function isChild

src/node/wrapper.ts:381–383  ·  view source on GitHub ↗
(proc: ChildProcess | ParentProcess)

Source from the content-addressed store, hash-verified

379 : new ParentProcess(require("../../package.json").version)
380
381export function isChild(proc: ChildProcess | ParentProcess): proc is ChildProcess {
382 return proc instanceof ChildProcess
383}
384
385// It's possible that the pipe has closed (for example if you run code-server
386// --version | head -1). Assume that means we're done.

Callers 2

wrapper.test.tsFile · 0.90
entryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected