Skip to content
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

Fix SignatureHelpProviderTests #1949

Merged
merged 2 commits into from
Dec 7, 2016
Merged

Fix SignatureHelpProviderTests #1949

merged 2 commits into from
Dec 7, 2016

Conversation

forki
Copy link
Contributor

@forki forki commented Dec 6, 2016

Current master is broken since @cartermp's commit 50e7a82

This is an attempt to fix it, but I'm not sure if the test is broken or the code itself

@vasily-kirichenko
Copy link
Contributor

vasily-kirichenko commented Dec 6, 2016

TBH, it looks really ugly:

image

image

I think it should not duplicate the doc for current parameter, but highlight in bold it.

@forki
Copy link
Contributor Author

forki commented Dec 6, 2016

So what does it mean? Fixing tests or code?

@vasily-kirichenko
Copy link
Contributor

Before:

image

image

@vasily-kirichenko
Copy link
Contributor

Looks the same.

@vasily-kirichenko
Copy link
Contributor

Why are "arg0" and "An object to write using format" on different lines? It should be fixed.

@dsyme
Copy link
Contributor

dsyme commented Dec 6, 2016

@vasily-kirichenko @forki There's something in Roslyn method displays we can't control here - I'm sure we can get them to change it eventually

@vasily-kirichenko
Copy link
Contributor

@dsyme what I don't like here is that "arg0" and its XML Doc are on different lines, that's all.

@forki
Copy link
Contributor Author

forki commented Dec 6, 2016

ok seems there are more to come. but since I can't compile this it will take some time until I have the tests fixed

@forki
Copy link
Contributor Author

forki commented Dec 6, 2016

ok changed test a bit to actually report all issues.

@forki forki force-pushed the fixbuild branch 2 times, most recently from cda7c51 to a73ad3d Compare December 6, 2016 15:11
@forki
Copy link
Contributor Author

forki commented Dec 6, 2016

this should become green now and therefore fix the build on master. @dsyme / @KevinRansom / @cartermp please take a look and merge if you think it's ok

@cartermp
Copy link
Contributor

cartermp commented Dec 6, 2016

@forki Thanks. Not sure why this went wrong, but I imagine the document created temporarily by the tests on the server is different than that on my machine when I updated these tests. That would explain the discrepancy in TextSpans.

I think that first item in the tuple can just be outright ignored. I don't think that verifying that the correct TextSpan is the same is very meaningful from a test perspective. The important bit is that the current argument and total number of arguments is accurate.

@dsyme @vasily-kirichenko I'll create an issue about the XML doc being on the newline

@dsyme
Copy link
Contributor

dsyme commented Dec 6, 2016

@cartermp Right now I think I'm just totally focusing on recovering parity with VS2015 rather than working out what's actually right/wrong :)

I think one key post RTM is to implement other relevant navigation aids (go to generated signature, F1 help etc), and cleanup quick info too.

@cartermp
Copy link
Contributor

cartermp commented Dec 6, 2016

@dsyme I figured it out; it's entirely on our end and has nothing to do with Roslyn.

@forki
Copy link
Contributor Author

forki commented Dec 6, 2016 via email

@cartermp
Copy link
Contributor

cartermp commented Dec 6, 2016

@forki Agreed, this is tangential and not related to this PR, minus the first part of this comment, since I think it'll lead to a less flaky test suite if TextSpans computation changes again if CI is run on a different server.

@cartermp
Copy link
Contributor

cartermp commented Dec 7, 2016

AppVeyor failures don't seem to be an issue. @KevinRansom can you verify and pull this if it's all good? This fixes a test in CI that's been going red for unrelated PRs.

@forki
Copy link
Contributor Author

forki commented Dec 7, 2016

Please please merge.

@dsyme dsyme merged commit 1568b24 into dotnet:master Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants