What "Promote Module to directory" and "Downgrade module to file" are supposed to do?
已回答
In Project view, under Refactor right-click menu there are two grayed-out items:
1. Promote Module to directory
2. Downgrade module to file
From what their name might suggest they are for making module.js -> module/index.js and module/index.js -> module.js,
but they aren't available when I'm trying to select such files.
So what are they for? Are they implemented? Help does not mention them.
请先登录再写评论。
Hello,
Can't see that. Could you show a screenshot please?
That seems to be coming from the Rust plugin, do you have it installed?
Oh... Yea, I've got it. Thanks!
However, a feature to make transitions from module.js into module/index.js and vice versa could be useful.