Is there a way to update the task list in VSCode?

The first time I open VSCode, it looks through my gulpfile and populates the task list. However, if I add a new task to my gulpfile and then run the task, it will only show the downloaded tasks. Is there a way to manually update the task list? Right now, I resorted to restarting VSCode every time I needed to start a new task.

+5
source share
2 answers

This is not a very convenient way to reload, but try Command Palette -> Refresh Window instead of restarting VSCode.

+7
source

Instead of reloading the whole window, you can edit (or create) /. Vscode / tasks.json, which will update all the tasks in your gulpfile.js.

Adding or removing an empty line will be considered editing to update the task list, so it looks faster and more efficient than reloading the window or opening / closing the IDE.

+1
source

All Articles