JetBrains / JetBrains/resharper-unity

FormerlySerializedAs - Rename dialog doesn't offer adding attribute with ~auto-add~ setting disabled

Open
#2,380 0 comments 0 reactions 1 assignee Claimed by @jorgeamado View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

With this combination of settings:
![grafik](https://user-images.githubusercontent.com/8841352/209126857-997ba8b2-f130-4e02-a635-005fe0da7ebd.png)
renaming fields doesn't actually offer/ask to add this attribute:
![grafik](https://user-images.githubusercontent.com/8841352/209126910-9cf9b198-e9b1-4e29-a54a-4ec34cbfc482.png)
i often rename fields with the intention to drop serialized data, so the combination of not-always-auto-add, but offer-to would be helpful to me if it worked.
In this case i started the rename refactoring on a property that also asked to rename the (serialized) backing field.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.