nickdodd79 / vscode-gulptasks

A gulp task visualization and execution extension for Visual Studio Code
MIT License
8 stars 6 forks source link

Restart task #6

Closed pwsandoval closed 6 years ago

pwsandoval commented 6 years ago

I use Gulp with BrowserSync and when it has been disconnected due to some error in my code I try to execute the task again with the extension by clicking on the green icon and nothing happens.

I must finish the task and then run again, is there any way that it is automatic or a button that stops and re-executes the same task again (restart the same task)?

nickdodd79 commented 6 years ago

Hi @pwsandoval,

There is a red stop icon used to terminate a gulp process - it terminates the process selected in the list. You can use that to stop the gulp task and then the green icon to start it again. Does that work for your scenario?

image

Nick.

pwsandoval commented 6 years ago

Yes, but I was referring to an option to restart it (stop and start in one step).

nickdodd79 commented 6 years ago

Gotcha. I'm on it :-)

nickdodd79 commented 6 years ago

Hi @pwsandoval,

Version 0.0.9 has now been released and include a restart command, which will stop and start a task in a single action. An icon has been added to the extension navigation palette.

image

Give it a go and check it works as you expected, then we can close this issue :-)

Nick.

pwsandoval commented 6 years ago

Yes, excellent improvement.