-
Notifications
You must be signed in to change notification settings - Fork 803
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
Function tooltip shows documentation for its parameter #9117
Conversation
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.
Looks good, just a minor nit
A failure here: fsharp/vsintegration/tests/UnitTests/LegacyLanguageService/Tests.LanguageService.QuickInfo.fs Line 2979 in 7780cab
@cartermp Is it OK that the test case seems to run (and fail) twice? |
I'm getting a build error when trying to build the failing unit tests in question on master, is anyone able to suggest what the problem might be?
|
@auduchinok Probably not, no 🙂 |
@mcon do you see that error when you build in VS? |
Managed to get things building, and tests running, looking at the failing test, it seems that the |
So, I've taken a look here @cartermp, and the secondary problem (which I've now resolved) was that the "grab point" for bindings was after the I wanted to have the XML comments on the arguments show up in tooltips too, but though I was able to add the grab points in the right place, I wasn't able to work out where to store the comments in such a way that they could be retrieved later, after parsing, by the tooltip. As a result I've not included this enhancement, and have just stuck to fixing the bug. Worth noting that prior to this change, XML comments on the function arguments didn't show up in the tooltips - this behaviour isn't altered as part of this PR. |
@mcon makes sense! Just fixing the bug here is definitely fine. Thanks! |
* Function tooltip shows documentation for its parameter * Missed array reversal * Update test - debugging via CI... * Update MultiProjectAnalysisTests.fs * Removed supposedly redundent filtering to fix up tests * Add additional grab point so that argument doc comments aren't included in binding comment. * Review comments on tests.
Summary
I believe this change should fix this issue #7455, and have confirmed that it appears to do so when running an instance of ReSharper with this change built into it.
The method in question that's been changed
LinesBefore
, was behaving more likeLinesAfter
.Testing