vscode-generact icon indicating copy to clipboard operation
vscode-generact copied to clipboard

Detect current file?

Open diegohaz opened this issue 8 years ago • 1 comments

Hey, @Dennitz. Amazing job you've done here.

I don't know very much about vscode plugin API, but I wonder if it's possible to detect the current opened file and provide a second command to quickly duplicate it. Similar to generact path/to/component.js.

Thank you,

diegohaz avatar Jul 04 '17 01:07 diegohaz

@diegohaz I guess vscode.window.activeTextEditor.document.fileName will do that. On that note, maybe we should also provide a menu item for generact when a component is right-clicked in the file explorer.

Dennitz avatar Jul 04 '17 11:07 Dennitz