Open soyrubio opened 2 months ago
Which request are you sending to the server.
Usually all response errors are converted in lower layers and if it is a ResponseErrorLiteral
the code will be preserve (see https://github.com/microsoft/vscode-languageserver-node/blob/dbaeumer/nutritious-vulture-turquoise/jsonrpc/src/common/connection.ts#L922)
Best would be you provide me with a GitHub repository I can clone with a minimal setup that demos what you are seeing.
Recently I stumbled upon an issue where I was unable to catch error codes from the LSP Server. If the
client?.sendRequest
fails, it returns anError
object. TheError
here has the following interface:Thus I am unable to catch any error code which I sent from the LSP server. If anyone knows a workaround for this I would be greatful, but nevertheless it could be a nice improvement to include the Error code in the interface.