-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Fix: fix all for Use Auto Property #75788
Conversation
@@ -77,23 +82,46 @@ public sealed override Task RegisterCodeFixesAsync(CodeFixContext context) | |||
return Task.CompletedTask; | |||
} | |||
|
|||
private async Task<Solution> ProcessResultAsync(CodeFixContext context, Diagnostic diagnostic, CancellationToken cancellationToken) | |||
//private async Task<Solution> ProcessResultAsync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yupyup
var locations = diagnostic.AdditionalLocations; | ||
|
||
var propertyLocation = locations[0]; | ||
var declaratorLocation = locations[1]; | ||
//var propertyLocation = locations[0]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be removed?
We were previously using hte batch fixer here as a real fix all provider was complex and costly. However, the batch fixer does a terrible job with adjacent edits. Moved to a real fix all provider so we can make all the edits correctly.
Fixes #75634
Fixes #26527