glsl-language-server icon indicating copy to clipboard operation
glsl-language-server copied to clipboard

Error replies dont include the method identifier

Open chergert opened this issue 2 years ago • 0 comments

That makes it hard for the client to handle overlapping asynchronous calls since it can't match the error reply with the method call.

For example, if I made an erroneous call to get symbols, I'd get a reply back like:

{
    "error": {
        "code": -32601,
        "message": "Method 'textDocument/documentSymbol' not supported."
    },
    "jsonrpc": "2.0"
}

but I can't use that to pass the message/error to the right async caller since I can't locate it in my "id" to "method-call" hash.

chergert avatar Oct 06 '22 01:10 chergert