richard1122 / vscode-youcompleteme

YouCompleteMe for VSCode
https://marketplace.visualstudio.com/items?itemName=RichardHe.you-complete-me
MIT License
53 stars 8 forks source link

Any reason using getType instead of getDoc for onHover? #39

Closed atlas1017 closed 5 years ago

atlas1017 commented 7 years ago

It seems to me that the getDoc gives more detailed info about identifiers and getType sometimes returns useless msgs like "bound member function type". Thanks!

richard1122 commented 7 years ago

Hi, I've tried GetDoc subcommand before and it always provides nothing. (both on Windows and Fedora) Have you tried to call GetDoc and get some correct results?

Thanks!

joelhock commented 7 years ago

check out pull request 45, which uses getDoc when available (which is only when there is doxygen documentation for the function), then the signature info that accompanies the completion for the function (which is more useful than getType for member functions, but can't figure out which overload is being used), and then falls back to getType for other things. https://github.com/richard1122/vscode-youcompleteme/pull/45