LanguageClient.sendRequest
does not seem able to send a request without a params
field, making it impossible to call some certain kinds of requests.
I’m trying to send a request that has no parameters, but receive errors like this in response:
Deno Language Server[14:35:10.679000] Received JSON-RPC response: number(6) deno/task
{
"jsonrpc" : "2.0",
"error" : {
"message" : "Unexpected params: null",
"code" : -32602
},
"id" : 6
}
And it’s true, even though I don’t specify any parameters, the request itself is being sent with null
as the parameters:
Deno Language Server[14:35:10.679000] Sending JSON-RPC request: number(6) deno/task
{
"jsonrpc" : "2.0",
"id" : 6,
"method" : "deno\/task",
"params" : null
}
There doesn’t seem to be any way for me to get Nova to omit the params field entirely, which is allowed by the LSP spec: Specification