SamKirkland / plop-templates

VSCode extension for plop.js file templates
MIT License
23 stars 5 forks source link

It does not seem to skip destinationpath prompt for me #14

Closed cmarabate closed 1 year ago

cmarabate commented 2 years ago

It shows me the path of the directory that I right clicked and choose "New File from Template" but I have to copy it and paste it as the answer to the "Template destination path" prompt in order for it to work correctly. Just leaving that prompt blank does not work... image

Reading the comment in the plopfile.js you provided and the release notes makes it seem like this extension is supposed to skip that prompt and automatically use the destinationpath for me. image

Is there something I still need to configure to get that working or is there a bug with the latest release?

tomardern commented 2 years ago

I'm having the same issue - the plop documentation (https://plopjs.com/documentation/#bypassing-prompts-by-name) mentions passing in with -- eg:

plop "component" -- --destinationpath "/path/user/selected/goes/here"

The current version of the extension runs (Note missing --) plop "component" --destinationpath "/path/user/selected/goes/here"

As a solution, set the vscode plop setting "Destination path" to this:: --destinationpath (note the space at the start) image

SamKirkland commented 1 year ago

Fixed in V1.2.0