-
Notifications
You must be signed in to change notification settings - Fork 385
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
Renaming a file to a .cs file causes extra items in the project file #5049
Comments
On second thought, this isn't None globbing at all. The issue here is that the user is renaming something that has an ItemType of None and CPS is trying to keep that same ItemType, even though the new name means the item is picked up by the Compile glob. This is a good thing in general, but specifically when its done straight after a New Item template its annoying. |
Perhaps maybe the improvement to be made here is in the detection of when to add It seems like perhaps improving the logic from "does it have a dot?" to "does it have a known file extension?" could work. But maybe that breaks some crazy workflows, I dunno - just tossing out the idea! |
Yeah, agreed, the new item dialog would be a great place to fix this too if possible. |
The fix could live in 2 different components. CPS or New file dialog. There needs to be an investigation on where is the right place for the fix. |
Sending back to triage as Osvaldo is on parental leave for the remainder of 17.2. |
From @NickCraver on twitter: https://twitter.com/Nick_Craver/status/1150201135095066624
Repro:
This is probably just None globbing (#4534) but maybe there is a small fix to be made in CPS to specifically improve the rename scenario.
The text was updated successfully, but these errors were encountered: