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

Check the right matches in lambdas #63006

Merged

Conversation

davidwengier
Copy link
Contributor

Fixes #61415

@davidwengier
Copy link
Contributor Author

@tmat

public void LocalFunction_EditAroundTry_WithActiveStatement()
{
var src1 =
"""
Copy link
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
Contributor 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
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
Contributor 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
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
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@davidwengier
Copy link
Contributor Author

ping @tmat

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:

@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