-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Rename feature to 'Add or remove accessibility modifiers' #77234
Conversation
@jasonmalinowski ptal |
|
||
internal class CSharpAddAccessibilityModifiers : AbstractAddAccessibilityModifiers<MemberDeclarationSyntax> | ||
internal class CSharpAddOrRemoveAccessibilityModifiers : AbstractAddOrRemoveAccessibilityModifiers<MemberDeclarationSyntax> |
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.
We should update the file names too. Or maybe just run the fixup on our entire codebase and see what it discovers. 😄
@@ -36,7 +36,7 @@ internal class CSharpCodeCleanupService(ICodeFixService codeFixService, IDiagnos | |||
IDEDiagnosticIds.RemoveUnnecessaryParenthesesDiagnosticId, | |||
IDEDiagnosticIds.AddRequiredParenthesesDiagnosticId), | |||
new DiagnosticSet(AnalyzersResources.Add_accessibility_modifiers, |
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.
Arguably the resource could be updated too. I'm guessing this is what we show in "here's what code cleanup can do" -- so maybe it could say both, but I can also imagine if the common case is this does an add, maybe it's best to keep the text simpler.
tl;dr: feel free to do what you want here.
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.
there are actually two resources. so you get the precise message :)
No description provided.