Skip to content

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

Open

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

  1. changed the title [-]Q LSP: return "code" names on init?[/-] [+]Q LSP: document error code names, and/or return a map/enum on init?[/+] on Feb 20, 2025
  2. added
    tracked[Maintainer-Only] Issue is acknowledged and tracked by the team
    on Feb 24, 2025
  3. XiaowenMaoA commented on Oct 17, 2026

    @XiaowenMaoA
    Contributor

    Thank you for the suggestion. Our team is currently focused on stability and reliability of existing functionality. We are not accepting feature requests at this time.

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