After updating typescript, angular, and all the libraries in my project, I encountered a new issue that was not present before. Although I successfully ensured that my code builds without any errors or warnings from the command line, Visual Studio Code starts highlighting errors when I make changes to a file.
The errors include messages such as
cannot find module 'angular2/core'
for my imports, warnings about @Components
, @Output
s, and @Input
s being experimental features subject to change, and highlight on some of my declared Window
properties in a .d.ts
file.
Despite having a seemingly correct tsconfig.json setup, it appears that VSCode is only analyzing the single file I edited instead of the entire project. However, running the build from the command line shows no issues. Only by using the Ctrl+Shift+B shortcut within VSCode do the errors disappear.
I have also provided my tasks.json configuration:
{
"version": "0.1.0",
"command": "tsc",
"isShellCommand": true,
"showOutput": "silent",
"args": ["-p", "."],
"problemMatcher": "$tsc"
}
How can I ensure that VSCode checks for errors and warnings across the entire project rather than just focusing on individual files?
Environment: VSCode 0.10.8, typescript 1.8.7, Linux Mint 17.3 x64