()
| 142 | } |
| 143 | |
| 144 | const hardKill = () => { |
| 145 | try { |
| 146 | childProcess.kill('SIGTERM') |
| 147 | } catch {} |
| 148 | // Store timeout reference so it can be cleared if process closes normally |
| 149 | killTimeoutId = setTimeout(() => { |
| 150 | try { |
| 151 | childProcess.kill('SIGKILL') |
| 152 | } catch { |
| 153 | try { |
| 154 | childProcess.kill() |
| 155 | } catch {} |
| 156 | } |
| 157 | killTimeoutId = null |
| 158 | }, 1000) |
| 159 | } |
| 160 | |
| 161 | const formatCollectedOutput = (rawOutput: string) => |
| 162 | formatCodeSearchOutput(rawOutput, { |
no test coverage detected