> Can you test gopls shutdowns
with your patch Javier?
I have tested locally with gopls v0.11.0 and M-x eglot-shutdown works successfully afaict. Both w/o and w/ the patch applied.
However I think it might be better to modify jsonrpc-request so that when the param argument is nil the JSON serialization omits the param key. I'm thinking of using the `,@(when param (list param)) idiom. jsonrpc has tests. I'd like to give it a go this weekend to see if I can come up with an acceptable way to have jsonrpc.el conform with the standard w/o changing the API. What do you think?