Skip to content

Check the right matches in lambdas#63006

Merged
davidwengier merged 4 commits intodotnet:mainfrom
davidwengier:EnCLocalFunctionActiveStatements
Aug 2, 2022
Merged

Check the right matches in lambdas#63006
davidwengier merged 4 commits intodotnet:mainfrom
davidwengier:EnCLocalFunctionActiveStatements

Conversation

@davidwengier
Copy link
Copy Markdown
Member

Fixes #61415

@davidwengier davidwengier requested a review from a team as a code owner July 28, 2022 05:00
@ghost ghost added the Area-Interactive label Jul 28, 2022
@davidwengier
Copy link
Copy Markdown
Member Author

@tmat

public void LocalFunction_EditAroundTry_WithActiveStatement()
{
var src1 =
"""
Copy link
Copy Markdown
Member

@tmat tmat Jul 28, 2022

Choose a reason for hiding this comment

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

"""

nit: do raw strings actually make this better with all the indentation and extra lines for """? Maybe I just got used to the previous style.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

In this case, with no quotes in the string, the only thing the raw string is providing is that the test input doesn't have to be based on column 0, so flows better in the IDE. The extra indentation is not present in the actual test input of course.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Of course, though "flows better" is subjective here. I feel like I need to subtract the whitespace in my head when reading the embedded source code.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah, thats a good point. I'm very used to the vertical line in VS that takes away that pain.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yup, it's better in VS but sadly github/CodeFlow do not have it :(

@dotnet dotnet deleted a comment from azure-pipelines bot Jul 31, 2022
@davidwengier
Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 4 pipeline(s).

@davidwengier
Copy link
Copy Markdown
Member Author

ping @tmat

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:

@davidwengier davidwengier merged commit 1654c17 into dotnet:main Aug 2, 2022
@davidwengier davidwengier deleted the EnCLocalFunctionActiveStatements branch August 2, 2022 22:10
@ghost ghost added this to the Next milestone Aug 2, 2022
@dibarbet dibarbet modified the milestones: Next, 17.4 P2 Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EnC: editing around try-catch block in top-level local function does not work

3 participants