Stop a gulp watch task?

后端 未结 3 837
情书的邮戳
情书的邮戳 2021-02-14 09:24

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\"

相关标签:
3条回答
  • 2021-02-14 10:06

    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."

    0 讨论(0)
  • 2021-02-14 10:14

    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.

    0 讨论(0)
  • 2021-02-14 10:23

    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" }
    
    0 讨论(0)
提交回复
热议问题