Open kevinushey opened 1 year ago
Note that newer versions of Pyright include a really nice feature that I think we should also adopt when implementing this - newlines are used liberally to make the function signature more readable. Compare these two images:
Our Jedi LSP doesn't have support for this pretty formatted view so we can't replicate in Python unfortunately, but we have full control over this on the R side and should do something similar with both color and newlines.
Another thing to note is that "parameter hints" only allows the "compact" form. I tried sprinkling in some newlines, but they just get stripped out by whatever ends up rendering this, so our pretty formatting would only apply to hover, not signature help (but that's ok):
We should do this up-front for both functions that have a help file, and functions which don't.
The current state:
Some comparisons: