diff --git a/languages/javascript/src/shared/ProvideManager/index.mjs b/languages/javascript/src/shared/ProvideManager/index.mjs index 68ce6e9c..5da44cfa 100644 --- a/languages/javascript/src/shared/ProvideManager/index.mjs +++ b/languages/javascript/src/shared/ProvideManager/index.mjs @@ -115,7 +115,8 @@ const provide = function(capability, provider) { result.then(result => { if (imethod.response) { - response.result = result + // void results should be null in the JSONRPC message + response.result = result == null ? null : result } Transport.send(module, `${method}Response`, response)