(child: ChildProcessWithoutNullStreams, msg: unknown)
| 87 | } |
| 88 | |
| 89 | function sendMessage(child: ChildProcessWithoutNullStreams, msg: unknown): void { |
| 90 | try { child.stdin.write(JSON.stringify(msg) + '\n'); } catch { /* child may be gone */ } |
| 91 | } |
| 92 | |
| 93 | function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void { |
| 94 | sendMessage(child, { |