It appears that all IDEs only display errors for open files. Is there a tool available that can show compilation errors for all files in a project?
If you configure a watch task in VSCode, it can accomplish this.
Setting up a watch task
In your package.json
, add the following scripts:
"scripts": {
"watch": "tsc --watch --noEmit --project './tsconfig.json'"
},
Configure the file .vscode/tasks.json
:
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "always",
"revealProblems": "onProblem"
}
}
]
}
To run the watch task in vscode command palette, go to Tasks: Run Task
and select npm: watch
Further information
For detailed steps, refer to: https://code.visualstudio.com/Docs/editor/tasks#_modifying-an-existing-problem-matcher
Personal insights
I have experience with other tools like atom-typescript
and alm-tools
, and currently working on a UI design product called that offers full project watching capabilities.