You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after looking around a bit it seems to me that those docs are out of date. It looks like it takes "hintPatternVariables" and "hintLetBindings" as configuration options.
After setting "hintLetBindings" to true I expect to get type annotations for the following let binding as seen in one of the inlay hints tests.
letf()=let y =0in y
(said test)
let%expect_test "let bindings"=let source ="let f () = let y = 0 in y"in
apply_inlay_hints ~source();
[%expect {|letf()=let y =0in y |}];
apply_inlay_hints ~hint_let_bindings:true~source();
[%expect {|letf()=let y$:int$=0in y |}]
;;
However i can't seem to get it working the only annotations I seem to have are for anonymous function parameters like the following:
let _ = (funa -> a)
let _ = (funa: a' -> a)
So i am obviously doing something incorrectly does anyone have any idea where I could have gone wrong?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to configure inlay hints, I first came across the docs below:
But after looking around a bit it seems to me that those docs are out of date. It looks like it takes "hintPatternVariables" and "hintLetBindings" as configuration options.
After setting "hintLetBindings" to true I expect to get type annotations for the following let binding as seen in one of the inlay hints tests.
(said test)
However i can't seem to get it working the only annotations I seem to have are for anonymous function parameters like the following:
So i am obviously doing something incorrectly does anyone have any idea where I could have gone wrong?
Beta Was this translation helpful? Give feedback.
All reactions