Server can not deserialize capabilities request because TextDocumentClientCapabilitiesCompletion.CompletionItemKind is now an object instead of a plain number.
Before:
// TextDocumentClientCapabilitiesCompletion Capabilities specific to the `textDocument/completion`
type TextDocumentClientCapabilitiesCompletion struct {
// ...
CompletionItem // ...
// This here is not a plain number anymore
CompletionItemKind CompletionItemKind `json:"completionItemKind,omitempty"`
// ...
}
After:
// TextDocumentClientCapabilitiesCompletion Capabilities specific to the `textDocument/completion`
type TextDocumentClientCapabilitiesCompletion struct {
// ...
CompletionItem ...
// ...
// better would be an additional struct instead of an inline one
CompletionItemKind struct {
ValueSet []CompletionItemKind `json:"valueSet,omitempty"`
} `json:"completionItemKind,omitempty"`
// ...
}
Server can not deserialize capabilities request because
TextDocumentClientCapabilitiesCompletion.CompletionItemKind
is now an object instead of a plain number.Before:
After: