Kmart2k1
Kmart2k1

Reputation: 563

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

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

Answers (2)

Beofett
Beofett

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

Slowmove
Slowmove

Reputation: 462

It is not a very convenient way of reloading - but try Command Palette -> Reload Window instead of restarting VSCode.

Upvotes: 10

Related Questions