Skip to content

Conversation

@psfinaki
Copy link
Contributor

@psfinaki psfinaki commented Nov 2, 2022

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.

@psfinaki psfinaki requested a review from a team as a code owner November 2, 2022 17:03
@vzarytovskii vzarytovskii added this to the October-2022 milestone Nov 2, 2022
Copy link
Member

@vzarytovskii vzarytovskii left a 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.

vzarytovskii
vzarytovskii previously approved these changes Nov 7, 2022
@vzarytovskii vzarytovskii enabled auto-merge (squash) November 7, 2022 10:28
T-Gro
T-Gro previously approved these changes Nov 7, 2022
@psfinaki psfinaki dismissed stale reviews from T-Gro and vzarytovskii via 476b541 November 7, 2022 12:09
@vzarytovskii vzarytovskii merged commit 634bf16 into dotnet:main Nov 7, 2022
@psfinaki psfinaki deleted the psfinaki/hints-2 branch November 7, 2022 15:02
|> Option.exists (fun entity -> entity.CompiledName <> "Operators")

symbol.IsFunction
&& isNotBuiltInOperator // arguably, hints for those would be rather useless
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Implement parameter name inline hints for F#

5 participants