LSP: Hover fails to parse response from server
GVls has support for Hover provider, added to client through #1241 (closed), but while the request is sent correctly, the server response is correct too, but it is not parsed correctly or not exposed correctly to the user.
Client request was:
<<< {"method":"textDocument/hover","jsonrpc":"2.0","id":23,"params":{"textDocument":{"uri":"file:///home/despinosa/Proyectos/gvls/src/gvls-text-document-client-capabilities-info.vala"},"position":{"line":41,"character":64}}}
The server response was:
{'result': <{'contents': <{'language': <'vala'>, 'value': <'Name: definition\nData Type: GVls.TextDocumentClientCapabilitiesInfo.definition\n\nType: Property::GVls.TextDocumentClientCapabilities.Definition\n\n'>}>, 'range': <{'start': <{'line': <int64 41>, 'character': <int64 2>}>, 'end': <{'line': <int64 41>, 'character': <int64 65>}>}>}>, 'jsonrpc': <'2.0'>, 'id': <int64 23>}
This is how the UI looks like:
Where The symbol is reported as unnamed
.