-
Notifications
You must be signed in to change notification settings - Fork 100
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
File rename refactoring also renames constructor #785
Comments
During investigation I discovered that it's not possible to fix issue by implement custom |
To be clear: Refactor->Rename File... does NOT change the name of the constructor, but it does change the name of the class (correctly). Refactor->Rename... (Shift+F6), which is a more common operation, exhibits the bug. Verified on 1.1(+develop). |
Turns out that if you change the class name when the class name is under the cursor, then everything works correctly. However, if the cursor is on a secondary position (e.g. the return type specification for a function), then the constructor's name will be changed. Also, selecting the name to change as part of a new expression ( Placing the cursor on the function name |
Fixed #922 |
Actual behavior:
After rename:
Expected result: constructor's name remaining the same
The text was updated successfully, but these errors were encountered: