Skip to content

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

Description

@justinmk3

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttracked[Maintainer-Only] Issue is acknowledged and tracked by the team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions