LyphTEC
LyphTEC

Reputation: 1029

Stop a gulp watch task?

How do I stop a running gulp watch task without having to completely exit the program?

I can see the task running on the task bar bottom left with a spinning "slashes" character.

There appears to be a command "Terminate running task" (that can optionally be bound to a keyboard short-cut) - but executing this command doesn't seem to do anything and the task continues to run. Is this feature not implemented yet in the current preview version (0.1.0)?

Upvotes: 10

Views: 11589

Answers (3)

kapil
kapil

Reputation: 1749

I was facing this issue from 2-3 months. Today I just opened tasks.json and saw hint that isWatching is deprecated instead use isBackground. I changed it and ran the task and terminated ,Voila it's working.

In short- Open tasks.json. If you see isWatching property on task change it to isBackground.

Upvotes: 0

doubleorseven
doubleorseven

Reputation: 364

If you ever wonder what

search for "Terminate Running Task."

does behind the scenes: "workbench.action.tasks.terminate".

so you can just bind it, like this:

{ "key": "ctrl+shift+t", "command": "workbench.action.tasks.terminate" }

Upvotes: 7

JasCav
JasCav

Reputation: 34652

In case others run across this question, open the Command Palette (Ctrl+Shift+P on Windows, Command+Shift+P on OSX, and search for "Terminate Running Task."

Upvotes: 18

Related Questions