Open JustinMinnaar opened 1 year ago
Thanks for reporting the issue. There has been a number of SDK issues related to access modifiers and I'm curious if this one is similarly affected. If you disable CodeMaid's option CodeMaid->Options->Cleaning->Insert->Insert explicit access modifiers on properties does that bypass the issue? Related issue #879
I just came across the issue too. Disabling that option does bypass the issue for me.
Agreed disabling does bypass the issue.
I was spiking with the "file" access modifier and there is a similar problem with it. It changes it to internal.
I had to disable the same setting but for classes.
Not as big of a deal since file access modifier actual use will be rare for most, but I figured I would mention it.
Thanks, had this issue for a while and finally found this page. Disabling that option fixed the problem but hopefully it'll get fixed soon because its hard to recommend the extension to my fellow devs who never check settings and religiously follow whatever the extension does lol
Thanks. This works for me. I had formatted the Blazor code and the required keyword gets removed.
[Parameter] public required TicTacToePlayer Player { get; set; }
[Inject] public required TicTacToeEngine Engine { get; set; }
same happened to me. workaround works but still a problem.
any progress on this?
also waiting on an update for this issue
Same too
+1
+1
+1
+1
+1
Any update on this?
Environment
Description
The keyword 'required' is deleted when doing a cleanup.
Steps to recreate
Set your project to use C# 10 Create a property using the required keyword. Perform a cleanup