-
Notifications
You must be signed in to change notification settings - Fork 391
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
Undoing a Roslyn rename prompts a rename #5139
Comments
@davkean I cannot reproduce this with the repro steps provided. Is there anything else that you did other than what you've suggested? |
This is going to because we conflating "renames" via dataflow with user actions. |
@davkean I cannot reliably repo this today, can you provide consistent repro steps on a build we've release? |
I mentioned early on in the rewrite that we shouldn't be using dataflow renames as an indication that the user renamed the class, any setting of ProjectItem.Name should result in this. |
I think I see where I misunderstood @davkean when you said this:
I thought you mean't F2 in the solution explorer, I assume you actually meant F2 on the class definition, which I can repro |
yeah, well need to re-write everything again... |
@davkean I will investigate this issue. |
@ocallesp The "Rename File" code fix isn't showing up for me anymore, can you see it? Regardless, this will still occur when any component (such as R#) uses APIs to rename files. |
This is currently blocking us from enabling this on the Roslyn side, so it shouldn't show up for CPS projects. |
Did you remove the code fix? It was enabled at one point. |
It hasn't been enabled for a long time as far as I'm aware. The PR is here dotnet/roslyn#39225 |
Steps to Reproduce:
-- observe that Program.cs has been renamed to NotProgram.cs --
Expected Behavior:
No prompt to rename
Actual Behavior:

User Impact:
The text was updated successfully, but these errors were encountered: