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

Rename feature to 'Add or remove accessibility modifiers' #77234

Merged
merged 8 commits into from
Feb 15, 2025

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 14, 2025
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review February 14, 2025 22:45
@CyrusNajmabadi CyrusNajmabadi requested review from a team as code owners February 14, 2025 22:45
@CyrusNajmabadi
Copy link
Member Author

@jasonmalinowski ptal


internal class CSharpAddAccessibilityModifiers : AbstractAddAccessibilityModifiers<MemberDeclarationSyntax>
internal class CSharpAddOrRemoveAccessibilityModifiers : AbstractAddOrRemoveAccessibilityModifiers<MemberDeclarationSyntax>
Copy link
Member

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,
Copy link
Member

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.

Copy link
Member Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead VSCode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants