Skip to content

Conversation

@niekschoemaker
Copy link
Contributor

The span used to be empty causing the warning to only appear when building, and not in the IDE (at least for Rider) unless something like Error lens is active.

I changed it to match the span it expects for the code fix, and also removed the break because both accessors can be wrong, and this way it correctly marks both of them as being on the wrong line. Otherwise applying the code fix would suddenly cause a new warning for the other accessor.

Copy link
Collaborator

@josefpihrt josefpihrt left a comment

Choose a reason for hiding this comment

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

Please add some tests to RCS0025PutFullAccessorOnItsOwnLineTests and also please update changelog.

@josefpihrt
Copy link
Collaborator

And sorry for late review 😊

@niekschoemaker
Copy link
Contributor Author

Please add some tests to RCS0025PutFullAccessorOnItsOwnLineTests and also please update changelog.

I've updated the tests to be correct, as there's no new functionality I'm not sure what kind of test I would have to add, but I did see that I forgot to update the tests. But that's done now.

@niekschoemaker
Copy link
Contributor Author

@dotnet-policy-service agree

@josefpihrt josefpihrt merged commit 37a845a into dotnet:main Aug 24, 2025
17 checks passed
@josefpihrt
Copy link
Collaborator

@niekschoemaker Thanks for the contribution!

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.

3 participants