Closed Mike-Logit closed 7 months ago
Sorry, I found another issue that covers this for file
: https://github.com/codecadwallader/codemaid/issues/1023
I'm sure I've seen one for required
as well so I can close this issue.
In case anyone lands on this page, the workaround worked for me: https://github.com/codecadwallader/codemaid/issues/879#issuecomment-1381429250
Why is this issue closed? The problem still occurs
Environment
Description
When I run the CodeMaid Format Document command, it removes the newer keywords. I have seen some issues raised about the removal of the
required
keyword but for me it also removes thefile
keyword (the newer access modifier). This seems like a problem with reverting to older C# language levels by avoiding these newer keywords.Steps to recreate
Current behavior
CodeMaid removes the
file
keyword forinternal
, and also strips out therequired
keyword after formatting:BEFORE FORMATTING:![image](https://github.com/codecadwallader/codemaid/assets/41903446/78bf0c4c-1d4f-4382-8409-dbd1881494fe)
AFTER FORMATTING:![image](https://github.com/codecadwallader/codemaid/assets/41903446/7be40e11-cc88-4aa7-8b5f-626e4ab51c31)
Expected behavior
I want to use the newer
file
access modifier to scope classes by file instead of scoping them by project, like the internal access modifier does. I also want to maintain therequired
keyword.