-
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
Add "Make type partial" codefix #65018
Add "Make type partial" codefix #65018
Conversation
...yzers/CSharp/CodeFixes/MakeDeclarationPartial/CSharpMakeDeclarationPartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
...yzers/CSharp/CodeFixes/MakeDeclarationPartial/CSharpMakeDeclarationPartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/CSharp/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/CSharp/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/Core/CodeFixes/MakeDeclarationPartial/AbstractMakePartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/Core/CodeFixes/MakeDeclarationPartial/AbstractMakePartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
...alBasic/CodeFixes/MakeDeclarationPartial/VisualBasicMakeDeclarationPartialCodeFixProvider.vb
Outdated
Show resolved
Hide resolved
...alBasic/CodeFixes/MakeDeclarationPartial/VisualBasicMakeDeclarationPartialCodeFixProvider.vb
Outdated
Show resolved
Hide resolved
src/Analyzers/VisualBasic/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.vb
Outdated
Show resolved
Hide resolved
...yzers/CSharp/CodeFixes/MakeDeclarationPartial/CSharpMakeDeclarationPartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/Core/CodeFixes/MakeDeclarationPartial/AbstractMakePartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: CyrusNajmabadi <[email protected]>
src/Analyzers/CSharp/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/CSharp/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/CSharp/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.cs
Outdated
Show resolved
Hide resolved
src/Analyzers/VisualBasic/Tests/MakeDeclarationPartial/MakeDeclarationPartialTests.vb
Outdated
Show resolved
Hide resolved
src/Analyzers/Core/CodeFixes/MakeDeclarationPartial/AbstractMakePartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
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.
approved with test.
...ers/Core/CodeFixes/MakeDeclarationsPartial/AbstractMakeDeclarationsPartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
...ers/Core/CodeFixes/MakeDeclarationsPartial/AbstractMakeDeclarationsPartialCodeFixProvider.cs
Outdated
Show resolved
Hide resolved
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.
lgtm, witht he minor changes mentinoed in the review. can merge in after that :) thanks!
@CyrusNajmabadi I've chosen the |
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.
Thanks!
Closes: #61611
Was doing some MAUI stuff the other day and it was really annoying that every time I add an
[ObservableProperty]
to a newly created view model, I have to manually addpartial
to class declaration without ability of 3-clicks fast fix. So here we go, my first fully implemented codefix 🙂