2

I'm trying to quiet down the F# Interactive terminal in VS Code. In my search I ran into commands such as fsi.ShowDeclarationVariables <- false, but I haven't found documentation of all such commands available. Can anyone point me in the right direction?

Thanks.

Bob McCrory
  • 183
  • 1
  • 3
  • 1
    I'm not aware of any docs, but have you tried simply inspecting the `fsi` value? E.g. `[for m in fsi.GetType().GetProperties() -> m.Name]` – Fyodor Soikin Mar 11 '19 at 19:04

1 Answers1

1

There is some documentation for the members of the fsi object available in the F# docs. This is a bit tricky to find, because fsi is a value of type InteractiveSession and so you need to look for the type, rather than just for fsi value.

It is also worth noting that, in addition to using reflection to see the members, you can also see all members if you type fsi followed by . (at least in Visual Studio) and the names of the members are fairly descriptive (though figuring out the details is a bit fiddly sometimes).

I'm not sure if the documentation is complete, but the docs are hosted on GitHub and anyone can contribute to improve them and add examples.

Tomas Petricek
  • 240,744
  • 19
  • 378
  • 553