flix icon indicating copy to clipboard operation
flix copied to clipboard

Inlay hint for the parameter I am typing

Open mlutze opened this issue 2 years ago • 5 comments

IntelliJ can give hints about the name and type of the parameter that I am typing. We get these a little with autocomplete, but with higher-order functions and long signatures, it can be hard to read. It would be nice to have either an inlay hint or some other popup that shows only the name and type of the parameter I am working with.

mlutze avatar Jul 27 '22 20:07 mlutze

Example? I can think of several things you could have in mind.

magnus-madsen avatar Aug 03 '22 19:08 magnus-madsen

(Also not sure we can provide it).

magnus-madsen avatar Aug 03 '22 19:08 magnus-madsen

For example, I always forget the order of parameters in List.foldLeft's function

If it would pop up with something like:

(x, y) ||> List.foldLeft($)
                         ^ [f: (in, out) -> out]
// ( $ is the cursor)

it would be very handy IMO

mlutze avatar Aug 03 '22 19:08 mlutze

Ah yes, but that is way beyond what we can support currently. Right? :)

magnus-madsen avatar Aug 03 '22 19:08 magnus-madsen

IDEA is like next level with these things.

magnus-madsen avatar Aug 03 '22 19:08 magnus-madsen

Cant support this.

magnus-madsen avatar Oct 08 '22 11:10 magnus-madsen