When dealing with large messages from "purs ide", the async on_stdout
handling was splitting returned JSON into two separate events, causing
failed JSON parsing.
We modify the handling of on_stdout to instead build a buffer for the
returned strings, which we flush when we reach on_exit.
Solves https://github.com/FrigoEU/psc-ide-vim/issues/128
When dealing with large messages from "purs ide", the async on_stdout handling was splitting returned JSON into two separate events, causing failed JSON parsing.
We modify the handling of on_stdout to instead build a buffer for the returned strings, which we flush when we reach on_exit.