Commit d9c3f48
authored
Avoid server crash when handler returns LspResult.Error (#33)
It appears that #29 broke the reporting of
LspResult.Error to StreamJsonRpc.
StreamJsonRpc processes LocalRpcException to report exceptions/errors from request handlers.
In particular we have code in `requestHandling` that actually throws LocalRcpException when
handler returns LspResult.Error.
This commit adds code to skip markingLocalRcpException as a fatal exception and make it not
crash the server.1 parent b145255 commit d9c3f48
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| |||
0 commit comments