[PATCH] D35894: [clangd] Code hover for Clangd
William Enright via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 11 11:47:56 PDT 2017
Nebiroth added a comment.
I've worked on a patch for this feature that currently supports showing the declaration of whatever is being hovered on instead of the raw source code. It also has basic support to distinguish declarations in types ( class/struct, namespace, global variable, typedef, enum, namespace, etc.) so that we can have a 'kind' of a symbol like mentioned in the comments above.
The step I am at right now is figuring out a way to display this information inside the box that will be displayed to the client once a response (MarkedString) is sent back by the server. I would like some feedback/suggestions on whether it's possible to "append" information to a MarkedString to be displayed on client? I was also considering extending LSP to include more than just a MarkedString for the response in order to have something a bit more flexible to use in-client.
More information about the cfe-commits