codemaid
codemaid copied to clipboard
When using "ref struct StructName", "ref" be deleted.
Environment
- Visual Studio version: [VS 2022 Enterprise]
- CodeMaid version: [VS.Net Version 12.0]
- Code language: [C#, LangVersion: 10.0]
Description
Run Code Maid, "internal ref struct StringSplitUtilStruct" changed to "internal struct StringSplitUtilStruct". That is, "ref" be deleted.
Current behavior
internal ref struct StringSplitUtilStruct
{
private ReadOnlySpan
Expected behavior
"ref" should be still in the codes.
If not, "ReadOnlySpan
Thanks for reporting the issue. There is a known bug in the Visual Studio SDK that is causing definitions to lose keywords. See https://github.com/codecadwallader/codemaid/issues/879 for more details. The workaround at this time is to disable CodeMaid's insert explicit access modifiers logic, which bypasses that part of the SDK. I hope that helps.
The problem still persists.