dotnet / codeformatter

Tool that uses Roslyn to automatically rewrite the source to follow our coding styles
MIT License
1.24k stars 244 forks source link

Need to update [DebuggerDisplay] attributes to match renamed field names #231

Open KirillOsenkov opened 8 years ago

KirillOsenkov commented 8 years ago

If CodeFormatter is renaming a field, it should check whether this field is referenced in [DebuggerDisplay] attribute and rename that accordingly. Otherwise we can end up with a problem:

image

See also: https://github.com/Microsoft/msbuild/issues/610 https://github.com/SergeyTeplyakov/ErrorProne.NET/issues/7