We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c2aaaf0 + a6069c7 commit 87e4571Copy full SHA for 87e4571
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