(line: string)
| 324 | indexVersionWarnings.claim(root); |
| 325 | }; |
| 326 | const trackInflight = (line: string): void => { |
| 327 | try { |
| 328 | const m = JSON.parse(line) as JsonRpc; |
| 329 | if (m && m.id !== undefined && typeof m.method === 'string' && m.method !== 'initialize') { |
| 330 | inflight.set(m.id, line); |
| 331 | } |
| 332 | } catch { /* unparseable — nothing we could re-serve anyway */ } |
| 333 | }; |
| 334 | |
| 335 | const writeClient = (obj: JsonRpc | string): void => { |
| 336 | try { process.stdout.write((typeof obj === 'string' ? obj : JSON.stringify(obj)) + '\n'); } catch { /* host gone */ } |
no test coverage detected