Whenever I use CMD+SHIFT+B in Visual Studio Code to compile TypeScript into JavaScript, an error pops up:
No build task defined. Mark a task with 'isBuildCommand' in the tasks.json file.
The contents of my tasks.json file are as follows. This setup has always worked fine in other TypeScript projects.
{
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"args": ["-w"],
"problemMatcher": "$tsc"
}
Even after adding 'isBuildCommand', the error persists!
{
"version": "0.1.0",
"command": "tsc",
"isBuildCommand": true,
"args": ["-w"],
"problemMatcher": "$tsc"
}