Skip to content

Update proximity expression tests to cover top level statements#58450

Merged
sharwell merged 4 commits intodotnet:mainfrom
sharwell:proximity-expressions
Jan 11, 2022
Merged

Update proximity expression tests to cover top level statements#58450
sharwell merged 4 commits intodotnet:mainfrom
sharwell:proximity-expressions

Conversation

@sharwell
Copy link
Copy Markdown
Contributor

Review commit-by-commit is recommended.

Fixes #58337

@ghost ghost added the Area-IDE label Dec 21, 2021
@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
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
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