(listener: (notice: SidecarExitNotice) => void)
| 52 | } |
| 53 | let unexpectedExitListener: ((notice: SidecarExitNotice) => void) | null = null; |
| 54 | export const onUnexpectedSidecarExit = (listener: (notice: SidecarExitNotice) => void) => { |
| 55 | unexpectedExitListener = listener; |
| 56 | }; |
| 57 | |
| 58 | /** Buffer chunked output into whole lines before handing them to `write`. */ |
| 59 | const makeLineSplitter = (write: (line: string) => void) => { |
no outgoing calls