diff --git a/src/Server/LspRequestRouter.cs b/src/Server/LspRequestRouter.cs index 2060a566b..41859d27a 100644 --- a/src/Server/LspRequestRouter.cs +++ b/src/Server/LspRequestRouter.cs @@ -123,11 +123,9 @@ public async Task RouteRequest(IHandlerDescriptor descriptor, Req { @params = request.Params?.ToObject(descriptor.Params, _serializer.JsonSerializer); } - catch (Exception cannotDeserializeRequestParams) + catch { - _logger.LogError(new EventId(-32602), cannotDeserializeRequestParams, "Failed to deserialise request parameters."); - - return new InvalidParams(request.Id); + return new InvalidParams(request.Id); } result = ReflectionRequestHandlers.HandleRequest(descriptor, @params, cts.Token);