Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q LSP: document error code names, and/or return a map/enum on init? #792

Open
justinmk3 opened this issue Feb 20, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@justinmk3
Copy link
Contributor

Problem

When Q LSP returns an error, it includes a code field.

Example:

[DEBUG][2025-02-20 07:08:49] .../vim/lsp/rpc.lua:393	"rpc.receive"	{ error = { code = -32800, message = "Request cancelled." }, id = 2, jsonrpc = "2.0" }

But the client doesn't have a mapping of these codes.

Expected behavior

Either document the codes, or perhaps send a mapping (dictionary) of name:code in the initialize response?

@justinmk3 justinmk3 added the enhancement New feature or request label Feb 20, 2025
@justinmk3 justinmk3 changed the title Q LSP: return "code" names on init? Q LSP: document error code names, and/or return a map/enum on init? Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant