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

support move folder when in active in exlorer #8

Closed wclr closed 7 years ago

wclr commented 7 years ago

When being active on a folder in explorer command should propose to rename/move folder not current active file if it is possible?

Also, it won't move folder if it does exist, probably in this case just should move content. maybe ask about what to do with existing files (overwrite/remove?

stringham commented 7 years ago

If you right click on the folder in the explorer it gives you the option to move that folder with move-ts.

wclr commented 7 years ago

Yes but command ctlr+shifp+p propose to move file not folder when focus is on folder in exlorer.

wclr commented 7 years ago

Also there is an error if folder exists, that could be handled.

stringham commented 7 years ago

Yeah, if the folder already exists we could check that there would be no conflicts when moving the files.

I'd welcome a pull request.

I don't think there's an API available to tell what folder is active in the explorer.