Solves CON-3587 Solves #7018 Solves #7121 Solves #5505 Solves #3981, and possibly other Stream closed-like errors ## Main change Now, if some exception bubbles up at any stage (whether it's read, write, anything else within `processScope`), we catch it via `CoroutineExceptionHandler` and we restart the process + back-off. Type of exception is not important / now it's more like black-box approach. This simplifies things quite a bit, since we now have only single piece of code for process recovery. ## Detailed changes * The process now recovers from exceptions globally, without specifying the type of exception (more of a black-box approach). * Remove `CoreMessengerManager`, since process recovery is now implemented in `ContinueProcessHandler`. * Add a back-off utility for calculating delays between process recovery retries (just a cleanup). * Restore `ContinuePluginService.dispose()` (because `Disposable` was accidentally removed during the last changes in the Next Edit - that's not critical, but it was causing exceptions when closing the application/during plugin disposal). * Remove the artificial delay between reading messages (from now on, blocking happens directly on `readLine`). |
||
|---|---|---|
| .. | ||
| cli | ||
| intellij | ||
| vscode | ||