We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6a27f commit a6069c7Copy full SHA for a6069c7
src/StreamJsonRpc/JsonRpc.cs
@@ -2484,8 +2484,10 @@ private async Task ReadAndHandleRequestsAsync()
2484
}
2485
catch (Exception ex)
2486
{
2487
+ // Report the exception and kill the connection.
2488
+ // Do not *re-throw* the exception from here to avoid an unobserved exception being reported
2489
+ // (https://github.com/microsoft/vs-streamjsonrpc/issues/1067).
2490
this.OnJsonRpcDisconnected(new JsonRpcDisconnectedEventArgs(ex.Message, DisconnectedReason.StreamError, ex));
- throw;
2491
2492
2493
0 commit comments