In this section maybe add another example (one provided below):
settings.json:
"triggerTaskOnSave.tasks": {
"run Bun": [
"src/*.ts"
],
}
.vscode/tasks.json:
{
"version": "2.0.0",
"tasks": [
{
"label": "run Bun",
"type": "shell",
"command": "bun bun.build.js",
"group": {
"kind": "build",
"isDefault": true
},
}
]
}
Description:
The above code defines a task in the tasks.json file and then refers to that task by name (label) in the settings.json file.
Whenever a ts file is saved in the src directory the task, run Bun is called. The task name is case sensitive.
In this section maybe add another example (one provided below):
settings.json:
.vscode/tasks.json:
{ "version": "2.0.0", "tasks": [ { "label": "run Bun", "type": "shell", "command": "bun bun.build.js", "group": { "kind": "build", "isDefault": true }, } ] }Description:
The above code defines a task in the
tasks.jsonfile and then refers to that task by name (label) in thesettings.jsonfile.Whenever a
tsfile is saved in thesrcdirectory the task,run Bunis called. The task name is case sensitive.