Skip to content

Reneme class and it's filename from a different file works only when current file has same name #44576

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


I noticed quite odd behavior of rename class and filename feature in Visual Studio 2019 (16.7preview1 as I wrote this).

Please examine following scenarios
1 - You can rename a file when renaming a class when you have that file open (that’s obvious and this works)
2 - You cannot rename a file when class and file you're renaming matches but you're in a different file (i.e. renaming class&file by renaming constructor usage) - error message is that file name does not mach.
3 - You can rename class it's file from other file only if the file you’re in has same name.

It seems like the actual mechanism of file renaming works but the method for disabling “rename file” checkbox if faulty - it checks for current open file instead checking for name match on the actual file the class is in.


Original Comments

Visual Studio Feedback System on 5/26/2020, 03:24 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Visual Studio Feedback System on 5/26/2020, 01:49 PM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2019#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.


Original Solutions

(no solutions)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions