richard1122 / vscode-youcompleteme

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

Enhance the logic for showing the hover popup #44

Closed joelhock closed 7 years ago

joelhock commented 7 years ago

The current getType does not return useful information for member functions. getDoc returns the most useful info, for things that have documentation, but nothing for things that do not. Next we try to find an exact completion for the identifier and use its signature. getType() is appropriate for the remaining cases.

This is kind of a followup to the conversation at https://github.com/Valloric/ycmd/pull/598 If you disagree with any of the design decisions, feel free to rework or let me know what you'd like changed. There will be a separate pull request to correct the documentation of what we show in the suggested completion.

joelhock commented 7 years ago

mmm, i need to fix something here. i'll resubmit later.