stringham / move-ts

A Visual Studio Code plugin for updating relative imports when moving typescript files and folders in your workspace.
MIT License
52 stars 15 forks source link

Use `git mv` if in a git repo #31

Open scohe001 opened 4 years ago

scohe001 commented 4 years ago

This extension is incredibly useful. My only possible complaint is how it looks to version control. In the commit it appears that a file has been deleted and a new one (with the same content) was created. This can make it difficult to tell if changes to the file's contents were made in the process.

I'm not sure how you actually accomplish the move at the OS level, but git at least has a solution for this. By running the move through git (with git mv), it cleans up the commit.

This would be a cherry on top feature to an already super awesome extension!

hikerpig commented 4 years ago

Looking forward to see this implemented