How can i prevent rename refactoring to scan specific folder?
Answered
When i do a rename refactoring (Ctrl-R-R) in a C# class of an ASP.NET MVC project R# scans all Javascript files for textual occurences. This is ok, but in my solution i have embedded the JavaScript files of the Kendo UI library locally for performance reasons. This causes long running refactorings and massive memory consumption (over 1,5 GB as schown in the status bar). How can i prevent the refactoring to scan the folder where he Kendo stuff is located? I tried to exclude the folder via the Generated Code page of the options, but this didn't work. Im working wth the latest EAP 7 build.
Regards
Andreas
Please sign in to leave a comment.
Hello Andreas,
It is a known issue https://youtrack.jetbrains.com/issue/RSRP-459024, feel free to follow/comment/vote for it.
Thanks!
Hello Alexander,
i have seen that the issue should be fixed in EAP 10, but for me it's definetly not. I just refactored the name of a parameter of a constructor (so only one file is affected) and R# scanned all files in the project for textual occurences including a bunch of third party javascript files. The refactoring took around a minute. In previous versions this was just a second. It seems that the current EAP has a problem to recognize the context of a refactoring.
I have added a comment to the issue too, but i also mention it here because i don't know if you monitor comments on fixed issues.
Hello Andreas,
Thanks for the update. We are sorry to hear that.
I was wondering if it is possible for you to record a video screencast (you may use free tool http://www.techsmith.com/jing.html) how renaming goes in the case you mentioned. You may attach the file to YouTrack ticket or upload it to FTP server as described here https://resharper-support.jetbrains.com/hc/en-us/articles/207635255-Uploading-Large-Files-for-JetBrains-Support-Team
Thanks in advance!
Hello Alexander,
sorry for the inconvenience. I just installed EAP 11. There the issue is fixed.
Best Regards
Andreas