Closed
Description
Is your feature request related to a problem? Please describe.
When the IDE gets a tooltip via FSharpCheckFileResults.GetToolTip, it will eventually print a layout from NicePrint.
Describe the solution you'd like
fsharp/src/Compiler/Service/ServiceDeclarationLists.fs
Lines 150 to 183 in bdb6462
To a certain degree, it is possible to control the width of a layout before it gets transformed into a tooltip.
Using Display.squashTo 80
after NicePrint.layoutType denv unionTy
for example.
I'd like to be able to pass in an option width that when present squashes the layout to get a better tooltip view.
Describe alternatives you've considered
I'm not really sure what the alternatives could be here.
Metadata
Assignees
Type
Projects
Status
Done
Activity
dsyme commentedon Sep 23, 2022
@nojaf Agreed this is reasonable to do