Skip to content

LSP completions violate spec #1868

@krobelus

Description

@krobelus

What happened, and what did you expect to happen?

LSP completions include this, which violates the spec because kind should be either "plaintext" or "markdown".

      "documentation": {
        "kind": "",
        "value": ""
      },

documentation is an optional markupContent

go-lsp package defines it as

	// A human-readable string that represents a doc-comment.
	Documentation MarkupContent `json:"documentation,omitempty"`

omitempty is useless. To fix this, we could change it to Documentation *MarkupContent.

Opening this issue here because it seems like https://github.com/nimblebun/go-lsp is not active.
Maybe we should switch to a different library?

Output of "elvish -version"

0.21.0

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🧭Recon

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions