(child: ChildProcessWithoutNullStreams, rootUri: string, id: number)
| 98 | } |
| 99 | |
| 100 | function sendInitialize(child: ChildProcessWithoutNullStreams, rootUri: string, id: number): void { |
| 101 | sendMessage(child, { |
| 102 | jsonrpc: '2.0', |
| 103 | id, |
| 104 | method: 'initialize', |
| 105 | params: { |
| 106 | protocolVersion: '2024-11-05', |
| 107 | capabilities: {}, |
| 108 | clientInfo: { name: 'test', version: '0.0.0' }, |
| 109 | rootUri, |
| 110 | }, |
| 111 | }); |
| 112 | } |
| 113 | |
| 114 | /** Find a JSON-RPC response with the given id (result OR error) on stdout. */ |
| 115 | function findResponse(stdout: string[], id: number): any | null { |
no test coverage detected