-
Notifications
You must be signed in to change notification settings - Fork 831
Inline parameter name hints for F# #14215
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
Conversation
vzarytovskii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will it handle active patterns? Maybe worth adding some tests for them too.
| |> Option.exists (fun entity -> entity.CompiledName <> "Operators") | ||
|
|
||
| symbol.IsFunction | ||
| && isNotBuiltInOperator // arguably, hints for those would be rather useless |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is missing a symbolUse.IsFromUse check, because without it function definitions are eligible for a hint, even though you will later find no applied arguments, so nothing is shown. I will fix it in the member and ctor PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, so the behavior is by coincidence :) Yes, this will be a valid check, thanks.
closes #14174
See the feature in action:
parameter.name.hints.mp4
Note for reviewers: new stuff is basically this, everything else is refactoring and extra testing.