-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking
: F# Hints
#14157
Comments
Can hints themselves have tooltips? This here looks like an empty one: It would be nice to reuse type annotation tooltips with all the good stuff like clickable references: (Sorry if this is not the place for a Hints discussion) Looks like a function needs to be passed in Also I've noticed that |
I think it's a great idea, we should make hints interactive if we can. |
This IS a place for hints discussion :)
I think so. As long the information doesn't aggressively jump on the user, it's only helpful.
On the one hand, it sounds suspicious, on the other hand, I don't have an idea what in our code can trigger this, we have a very thin layer now. I will investigate. |
This is probably bug on Roslyn side, but hints won't go away when you release Alt+F1, unlike in C# editor. |
No, it's not implemented yet. Tracked in #14260 |
@raymens so, that's an interesting thing and it also applies to the tooltips. You get the full type name there unless you have specified in the opens. Take a look: fulltypes.mp4This somewhat makes sense to me. Also this means that probably in many cases you'd have the short types there. WDYT? That said, the tooltips for the hints themselves show the short type anyway: This is inconsistent and worth fixing. Now, as for the mechanics of that, I think this is not a big deal and basically just depends on what info you take from the symbol: |
I think his point is that According to https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/basic-types, |
Oh, that thing. Well so the docs above pretty much answers the question :) I am on a fence then. We can technically hardcode this conversion in the code but, given that this seems to be the only thing of that nature - and it's not very common I guess - not sure if it's worth it. |
Thanks for the detailed explanation. Maybe the solution is to consider bigint a basic type instead... considering it's the only one apparently. However I'm going off-topic and there's probably reasons why that's the case. |
Well, that's because it's arguably not that basic :) I think, yeah, just mapping this type to its short form would be sufficient. I would be up for having it. Feel free to jump on this, or we can create a ticket and someone will eventually pick it up. |
Supersedes #10289.
We'll be introducing a feature called F# hints. It is inspired by C# inline hints but will do more! The feature is going to be built on top of the dedicated Roslyn API.
This will supersede the experimental CodeLens feature that is current present in Visual Studio. The CodeLens brand in F# is planned to do the same as in other languages, i.e. show references, test coverage and so on (details here).
The plan is to gradually add different hints and make them configurable. Here is the proposed roadmap:
Bugs:
for
expression #14393The text was updated successfully, but these errors were encountered: