Closed mjlshen closed 2 years ago
Thanks for reporting, I can sometimes reproduce this myself. At least often enough to where it's annoying. I don't think it's anything that you've done wrong, I think it's more likely a bug in the generation of the inlay hint or it's injection into the document you're viewing. In the meantime as a workaround, consider setting the inlay hints to toggle when you press Cmd+Alt
, which you can do either by hovering over an inlay hint to show a tooltip and clicking the appropriate option in the suggestions we offer, or by manually setting the editor.inlayHints.enabled
setting to offUnlessPressed
. That will let you default to no inlay hints, but when you want to know a parameter name, or want to see a type hint, you can press that key combination and see them momentarily.
This doesn't really sound like a problem with Ionide - we don't control inlay hints behaviour; we're just providing data for it. If it's still happening, please open an issue with reproduction on the VSCode repository itself.
It would also be interesting to see if this changes when we do move to the LSP-based hints instead of our custom hints.
Disclaimer: I'm new to F#, so not 100% sure if this is a bug, but it sure feels like one
Describe the bug
I'm trying to read in 8 integers from the console via:
However, with with
"FSharp.inlayHints.parameterNames": true
, this confusingly shows in VSCode as:Stranger still, there's no such problem if I write it instead with something like:
Steps to reproduce
"FSharp.inlayHints.parameterNames": true
Seq.init 8 (fun _ -> int(System.Console.In.ReadLine())
anywhereExpected behaviour
It's possible I'm supposed to
open System
? This may be myself doing an anti-pattern because I'm new to F#. Otherwise my expected behavior would be to not override the existing textMachine info
macOS 12.3
6.0.202
6.0.3