Open ascandone opened 1 week ago
Sounds good! One thing I want to make sure is that we don't make it too overwhelming with too much information.
should we show it even if the value if a simple literal (e.g. string or int)?
Let's not show it.
should we show it even if the value is a variable whose type is a type with the same name? (e.g. html: Html)
Yes
It would be nice to have inlay hints showing the type of each line in a pipeline expression (that span across multiple lines)
This is the way this is shown in Rust:
I have a working POC in this PR
Open questions
a |> f() |> ... |> g()
expression, should we showa
's type? (Rust shows it)html: Html
)Previous attempts
https://github.com/gleam-lang/gleam/issues/2319, https://github.com/gleam-lang/gleam/pull/2393, https://github.com/gleam-lang/gleam/pull/2525