-
Notifications
You must be signed in to change notification settings - Fork 133
Completion item documentation property has null kind #305
Comments
The only place we don't explicitly choose between plaintext or markdown seems to be: The kind being set comes from You should be able to mirror the options set by the VS Code extension in the On our end we could add |
Thanks! Adding the |
VS Code handles null, and there is a performance issue here. Can we check if the spec needs to be updated? |
It turns out that VS Code does not handle If I go through all places we create MarkupContent and force it to be null, everything that uses those objects breaks, including completion and hovering. I read through the I'm going to PR in a fix for this one specific instance to ensure that "completionItem": {
"snippetSupport": true,
"commitCharactersSupport": true,
"documentationFormat": [
"markdown",
"plaintext"
],
"deprecatedSupport": true,
"preselectSupport": true
} Which is exactly the info we need, including the ordering (best choice first). |
Completion items are returning with documentation properties that look like this:
"documentation": { "kind": null, "value": "None" }
The relevant spec is here (Search for
MarkupContent
). According to the spec,kind
should be one ofplaintext
ormarkdown
.Null kind values are causing problems with LanguageClient-neovim as described here autozimu/LanguageClient-neovim#633 (comment):
The text was updated successfully, but these errors were encountered: