vscode-generact
                                
                                
                                
                                    vscode-generact copied to clipboard
                            
                            
                            
                        Detect current file?
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
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.