(child: ChildProcessWithoutNullStreams, msg: unknown)
| 94 | } |
| 95 | |
| 96 | function sendMessage(child: ChildProcessWithoutNullStreams, msg: unknown): void { |
| 97 | try { child.stdin.write(JSON.stringify(msg) + '\n'); } catch { /* child may be gone */ } |
| 98 | } |
| 99 | |
| 100 | function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void { |
| 101 | sendMessage(child, { |
no test coverage detected