Closed danielbrodin closed 7 years ago
I just experienced the same issue. I wonder if it doesn't support .tsx ?
You're right. Right now it's hard coded to only look at .ts
files. We should add an option for which files to include.
Any reason for only supporting .ts
files? Have a couple of components I want to move and this extension would make it so much easier :)
There is no reason. When I wrote it I only needed it for .ts
files so I ended up hard coding it that way.
I just published an update that should support .tsx
files, let me know if it doesn't work for you.
It doesn't seem to work for me. Using vscode 1.13.1 and macOS Sierra on a project using create-react-app with the typescript script. Have tried moving a couple of files, but none seem to work.
Component2 has
import Component1 from './Component1'
, and then I move Component1 toSubfolder/Component1.tsx
but nothing happens with the import.Is there something I have missed?