Closed Booksbaum closed 2 years ago
These are all really helpful suggestions, thanks for the time you took writing it up! I agree on the length, that's a really good thing to add and plumb through.
The more-specific kinds of hints might be more difficult to do, but of course we'd love to be able to offer more toggles so that people can choose the specific kind of hints they want, easily.
One other thing we should do is round-trip the configuration settings I've added in ionide around hint generation into the generation side of things here in FSAC, not just the rendering side in Ionide.
Add to the list: unary operators
let x = 11
let y = -x
becomes:
Though quite nice in general, there are some cases Inlay Hints are redundant or distracting:
Some commonly used functions where parameter name doesn't add anything (like
not
orignore
)printfn
& cosprintf
& co functions are very often used -> very distractingformat
-> wants format string)List.map
& co-> maybe setting to disable some hints (-> user defined list with hints to disable? By type and or parameter name (regex?)?)
How others handle inlay hints:
25
by default30