From 7777462e262b32c0c10e36f0871ef83194678166 Mon Sep 17 00:00:00 2001 From: Andrew Arnott Date: Tue, 26 Nov 2019 16:14:27 -0700 Subject: [PATCH] Use user-supplied JsonConverters when deserializing IProgress report Fixes #377 --- src/StreamJsonRpc/JsonMessageFormatter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StreamJsonRpc/JsonMessageFormatter.cs b/src/StreamJsonRpc/JsonMessageFormatter.cs index 2676a1b4..72f94848 100644 --- a/src/StreamJsonRpc/JsonMessageFormatter.cs +++ b/src/StreamJsonRpc/JsonMessageFormatter.cs @@ -513,7 +513,7 @@ private JsonRpcRequest ReadRequest(JToken json) MessageFormatterProgressTracker.ProgressParamInformation progressInfo = null; if (this.formatterProgressTracker.TryGetProgressObject(progressToken, out progressInfo)) { - object typedValue = value.ToObject(progressInfo.ValueType); + object typedValue = value.ToObject(progressInfo.ValueType, this.JsonSerializer); progressInfo.InvokeReport(typedValue); } }