-
Notifications
You must be signed in to change notification settings - Fork 52
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
Show return type hints on last line of pipeline chain #602
Conversation
@DedSec256 Please rebase on |
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.
Very good testing overall, but I'm a bit lost with the skipFunArgs
helper.
[ 1 ]||(0) | ||
|> |
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.
This is a good one!
|> ignore | ||
|> id |
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.
👍
|> List.iter ignore | ||
|
||
[1]||(8) | ||
|> List.map ignore||(9) |
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.
👍
let f _ _ = () | ||
|
||
1||(12) | ||
|> f||(13) |
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.
👍
ReSharper.FSharp/test/data/features/daemon/pipeChainTypeHints/Skipped 05 - Inner pipe.fs.gold
Show resolved
Hide resolved
.IgnoreParentParens() | ||
.GetOutermostParentExpressionFromItsReturn() | ||
.IgnoreParentParens() |
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 wonder if this parens skipping would be better to be inside GetOutermostParentExpressionFromItsReturn
instead of having to do it twice later?
let rec skipFunArgs (t: FSharpType) = | ||
if t.IsFunctionType then skipFunArgs t.GenericArguments[1] else t |
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'm not sure I can easily follow the logic here. Could you add some comments/examples, please?
https://youtrack.jetbrains.com/issue/RIDER-77585/Show-return-type-hints-on-last-line-of-pipeline-chain