Open johnsunabc opened 1 year ago
Thanks for reporting the issue. We have logic that should(tm) prevent access modifiers from being added to partial classes (link: https://github.com/codecadwallader/codemaid/blob/dev/CodeMaidShared/Logic/Cleaning/InsertExplicitAccessModifierLogic.cs#L61) but I believe this may be another symptom of a known SDK bug (see issue #879 for details).
Environment
Description
When a class has many partial sub-classes, such as A.cs, A.Drawing.cs, A.Tool.cs, the class like that: A.cs: public sealed partial class A A.Drawing.cs: partial class A A.Tool.cs: partial class A
Steps to recreate
// A.Drawing.cs partial class A { // Sub for drawing ... }
// A.Tool.cs partial class A { // Sub tool for drawing and others ... }
// A.Drawing.cs internal partial class A { // Sub for drawing ... }
// A.Tool.cs internal partial class A { // Sub tool for drawing and others ... }
Current behavior
Expected behavior
All sub parts should be: "public sealed partial class (ClassName)".