Fsharp status bar tooltips
Useful if you don't use the mouse.

This might be better in the lower left of the bottom bar?
Or might be worth revisiting after #3100 gets merged
But also, the new UI doesn't have accessibility hints.
This might be better in the lower left of the bottom bar?
Yeah, I think so too. No idea how to do that though :)

Modified to use the footer status bar area.
That looks really cool, but would it be better if it was a bar in the bottom of the text editor (if possible). I'm thinking about the eye travel distance. It isn't horrible on a horizontal monitor, but it could be a fair bit on a vertical monitor?
but would it be better if it was a bar in the bottom of the text editor (if possible)
That space at the bottom is currently doing nothing right now, seems a shame to waste it.
true, maybe cycle cool random F# tips ;)
There was a conscious decision of removing the status bar when XS was redesigned a few years ago. I think it would make more sense to show the status in a bar in the text editor, but I'd like to have the opinion from @vancura @hbons @migueldeicaza.
Window status area is indeedly not the right place to show this information. We need something better. Let me think.
If I understand this well, the information currently shown in the toolbar status area is just a quick help, right? If that's right, I'd rather show it on a keypress in a bubble on top of the TextEditor. Something that JetBrains use to inspect declaration of the method.
@vancura - the idea is that it isn't distracting and is automatic. Every other editor/IDE has this. It's also currently an option that is disabled by default - you have to enable it.
This is what Rider has, is this the same thing? Invoked with ⌘P.

By the way, I also think it's way too detached if it's in toolbar or footer. It should close to where you're looking at.
By the way, I also think it's way too detached if it's in toolbar or footer. It should close to where you're looking at.
I'd like to have the same feature but in a bar beneath the editor if it's not possible to use the footer area. I've been using this feature for years in other editors and I find working in VS for Mac jarring for this reason. I don't want to use the mouse to see the tooltip. There are probably accessibility considerations in play here also.
This is what Rider has, is this the same thing? Invoked with ⌘P.
No, not quite the same thing, that's parameter help.
Certainly possible to display a tooltip with a keybind, but I wouldn't want it to be the only way to get this information.
Here's the same thing in VS code

I got it. Well, the problem is we don't have any permanent panel we could display it on, like VSCode's footer. Toolbar status area is a wrong place to use for such a feature, but I don't think we should re-introduce footer just because of this.
@maryanne-exe @hbons Thoughts?
I just found a screenshot from VS (Windows) showing almost the same thing

I don't mind where the information is displayed so long as it can be displayed somewhere - I was happy with it in the top area :)
Sorry to rain on your parade. We just need to come up with some better place.
Agree that status bar isn't the right place for these hints, let's leave it for IDE related updates. Cons of displaying in the line (either top or bottom):
- The line will constantly flash in the user's peripheral view: can be annoying;
- Distance eyes need to travel is significant as was mentioned here;
I think it's reasonable to have a hotkey to display the hint. Pros:
- We can use the same tooltip that popups on mouse hover: consistent with the current solution and less of implementation work;
- The user may decide to enable or disable the hints. Cons:
- Discoverability of a new hotkey. We can add a hotkey suggestion in a tooltip that shown on the mouse event (e.g. at the bottom of a tooltip) so the user may learn in the UI. Also, use the same shortcut as other IDEs use (e.g. Rider).
@nosami: Do you think a keyboard shortcut to invoke the feature would be too much?
@vancura - It's not difficult at all.
I feel like it that would be only be half as useful though. I would still want a way to always see the current type information without having to press some shortcut key constantly while evaluating some unfamiliar code.
The popup tooltip also obscures the view of the code which makes things a little awkward when trying to determine how a block of code works.
F#'s strong type inferencing means that type information isn't visible in the actual source code, and this type of tooltip becomes far more valuable than it would be for a C# developer.
It would be really a nice feature if we find a good spot to draw it on. Let's summarize the requirements:
- it needs to be fast
- no keyboard shortcut to show it
- it needs to draw near the caret
Am I right?
I am sorry that we need to postpone your branch, but let's first make sure this looks and behaves really nice, it could be a killer feature, and not only for F#.
@vancura - yes, ideally. I'm not opposed to having a shortcut provided that there is an option to have it always visible as well.
Not too sure about it being near the caret though as that moves constantly... and anywhere near the caret would obscure other code. I'd prefer somewhere static, either in the IDE frame, or per editor frame.
Please see the xamarin/design issue above. Also, I am marking this PR as not-to-be-merged yet.
This should be added as well to our online help pad that we have discussed.
The shortcut is undiscoverable, so I rather not rely on that. For F# we need this kind of help.