abingham / emacs-ycmd

Emacs client for ycmd, the code completion system.
MIT License
384 stars 46 forks source link

ycmd-eldoc: Use GetTypeImprecise if applicable #434

Closed ptrv closed 7 years ago

ptrv commented 7 years ago

This is a small optimization for ycmd-eldoc.

GetTypeImprecise does not reparse the buffer like GetType and since we parsing the buffer on many other events, I guess it is totally fiine to use this. Ask the server first it the subcommand is supported.

I think this should also go into emacs-ycmd 1.2

ptrv commented 7 years ago

Nice catch! Fixed!

abingham commented 7 years ago

Awesome, thanks!