Skip to content

Please document CompletionItem.Kind more #1765

Open
@KalleOlaviNiemitalo

Description

@KalleOlaviNiemitalo

I was implementing a CompletionDelegate in my command-line application. That returns IEnumerable<CompletionItem> so my completion method needs to call the CompletionItem constructor. This constructor takes a string kind = "Value" parameter but it is not clear how to decide whether the default value "Value" is correct or the caller should pass in something else. The documentation of this parameter is just "The kind of completion item." and the documentation of the CompletionItem.Kind property is the same.

From the source code, I found the internal class CompletionItemKind, which defines "Keyword" and "Value". However, that does not document their meanings either and instead references https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#textDocument_completion, and that page no longer exists.

Please expand the documentation of the parameter and the property to list the completion item kinds that have been defined, or to point to other documentation that provides this information.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions