LanguageServer.jl icon indicating copy to clipboard operation
LanguageServer.jl copied to clipboard

Initial InlayHint provider implementation

Open pfitzseb opened this issue 2 years ago • 2 comments

image

Todo:

  • [ ] better method selection
  • [x] better tooltips
  • [x] take request range into account
  • [x] get rid of hints in func defs
  • [x] settings
    • [x] none
    • [x] all
    • [x] literals only
  • [x] tests

pfitzseb avatar May 06 '22 15:05 pfitzseb

image

pfitzseb avatar May 09 '22 13:05 pfitzseb

settings

Perhaps it would be useful to have constructors as a setting? Personally I am not sure how useful hints would be for general functions, since the argument names are like an implementation detail, but when you construct something I still think it would be useful. For example: https://github.com/julia-vscode/LanguageServer.jl/blob/5b4e8e87b5fdb8afac826f4179237bca3987a0b6/src/languageserverinstance.jl#L67-L94

fredrikekre avatar May 09 '22 16:05 fredrikekre

I'm a fan of this feature in C++, looking forward to having it in Julia!

chriselrod avatar Mar 10 '23 00:03 chriselrod

I rebased this onto master here, https://github.com/Zentrik/LanguageServer.jl/tree/inlay-hints.

Zentrik avatar Jun 19 '23 09:06 Zentrik

This would be amazing to have--any more progress?

ParadaCarleton avatar Sep 08 '23 00:09 ParadaCarleton