Reputation: 563
The first time I open VSCode, it scans my gulpfile and populates the task list. However, if I add a new task to my gulpfile, and then Run Task, it will only show the initially loaded tasks. Is there a way to manually refresh the task list? Right now I've resorted to restarting VSCode everytime I need to run a new task.
Upvotes: 7
Views: 4759
Reputation: 2429
Rather than reloading the entire window, you can edit (or create) /.vscode/tasks.json, which will trigger a refresh on all tasks in your gulpfile.js.
Adding or removing a blank line will count as an edit for purposes of refreshing your task list, so this seems faster and more efficient than reloading the window or opening/closing the IDE.
Upvotes: 2
Reputation: 462
It is not a very convenient way of reloading - but try Command Palette -> Reload Window instead of restarting VSCode.
Upvotes: 10