Moving typescript files to another directory does not update references

Using Rider on mainly TypeScript monorepo, (but one C# project, that's why I use Rider).

Was told that Rider includes WebStorm, but when I moved files around in WebStorm, I got a refactor dialog offering to search and chang references, strings, comments etcetera, but that doesn't happen if I open my project in Rider.

 

I'm probably doing something wrong, but what?

3 comments
Comment actions Permalink

Your first step should be to check under settings->Language And Frameworks->TypeScript and ensure it is configured correctly.

Having used a few of the Jetbrain IDEs I can unequivocally say they each have nuances, but I would assume in Rider you have to do it the way Rider refactors things, for example to move something right click it, choose Refactor This->Move.

I don't do TypeScript but I did find this:

https://www.jetbrains.com/help/rider/Specific_TypeScript_Refactorings.html

 

 

0
Comment actions Permalink

Thanks for making me aware that IDE's have their own perception on how to refactor. Unfortunately there is no Move option for TypeScript files. In the mean time (since I work mostly on TS anyway) I moved back to WebStorm, and am using Rider only when working on C# files.

0
Comment actions Permalink

Hello! 

The issue here is that update references upon move are not working in Rider at the moment: RIDER-36097. It is very important for you to upvote it in order to bring increased awareness to the issue. Also, please click to Watch it for monitoring the progress. Don't hesitate to let me know if there is anything else I could help you with. 

Have a great day!

0

Please sign in to leave a comment.