Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failure to rename scriptable objects #1196

Merged
merged 3 commits into from
May 20, 2019
Merged

Conversation

citizenmatt
Copy link
Member

The rename process tries to validate the rename worked, by resolving the new reference against the newly renamed declared element. For script components, resolve takes the name from the file name, which hasn't yet been renamed, meaning that the rename of the reference also failed.

This PR changes how the reference handles rename. It will now create a new reference and pass in the new name of the class being renamed. During resolve, if this expected resolved name is available, it will be used to match, otherwise, the filename is used.

@citizenmatt citizenmatt added this to the Rider 2019.1.2 milestone May 20, 2019
@citizenmatt citizenmatt merged commit ada6428 into 191 May 20, 2019
@citizenmatt citizenmatt deleted the bug/rename-scriptable-object branch May 20, 2019 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants