MaskRay / ccls

C/C++/ObjC language server supporting cross references, hierarchies, completion and semantic highlighting
Apache License 2.0
3.72k stars 254 forks source link

Add support for inline parameter hints #932

Open wtao137 opened 1 year ago

wtao137 commented 1 year ago

Some IDEs have a feature called "inline parameter hints", where the client renders annotations showing parameter names inline in function calls.

Screenshot to illustrate:

image

This is now corresponding feature called Inlay Hints in the lnaguage server protocal https://github.com/microsoft/language-server-protocol/issues/956 .

And clangd has implemented this for c/c++. As a result, I'm wondering if it's possible to implement it in ccls, since having it will be quite useful.

The original issue for clangd: https://github.com/clangd/clangd/issues/313