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

Update proximity expression tests to cover top level statements #58450

Merged
merged 4 commits into from
Jan 11, 2022

Conversation

sharwell
Copy link
Member

Review commit-by-commit is recommended.

Fixes #58337

@sharwell sharwell marked this pull request as ready for review December 21, 2021 22:20
@sharwell sharwell requested a review from a team as a code owner December 21, 2021 22:20
@sharwell sharwell enabled auto-merge December 21, 2021 22:20
&& _parentStatement.Parent is GlobalStatementSyntax { Parent: CompilationUnitSyntax compilationUnit } globalStatement
&& compilationUnit.Members.FirstOrDefault() == globalStatement)
{
_expressions.Add("args");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like these could be in all top-level statements. but i get the idea that maybe it's not 'close' unless on the first.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

➡️ I made top-level statements behave exactly the same as the full form. Only showing method parameters on the first statement is part of the design that precedes my changes.

Copy link
Member

@tmat tmat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@sharwell sharwell merged commit 2a7bd86 into dotnet:main Jan 11, 2022
@ghost ghost added this to the Next milestone Jan 11, 2022
@sharwell sharwell deleted the proximity-expressions branch January 13, 2022 15:19
@RikkiGibson RikkiGibson modified the milestones: Next, 17.2.P1 Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IVsLanguageDebugInfo.GetProximityExpressions does not work for top-level code
4 participants