Reputation: 1402
Is there any way to make Webstorm continuously report all typescript errors project wide without opening all the files? For performance reasons I would like it done using the language service and not by a task running tsc.
I know Webstorm shows all problems in Dart projects using the Dart analysis server which I think is similar to the Typescript language service. So basically I am looking for a way to make Webstorm (or vscode) work the same way for TypeScript as it does for Dart projects with regards to reporting project wide errors.
Edit 2016-09-09:
A small example in Webstorm:
Add these files:
test1.ts
export const foo:number = 5;
test2.ts
import {foo} from './test1';
const bar:string = foo;
Now change the contents of test1.ts to this:
export const foo:string = "";
Save test1.ts.
Upvotes: 8
Views: 9846
Reputation: 29874
On Webstorm, the Typescript -> Current Errors
tab displays project wide errors 'live'
Introduce or fix an error and the result will appear in that tab.
Typescript preferences must correctly be set; WS is using the project tsconfig.json in the example below. A 'Compile All' must be run from that tab at least once (to build the errors cache, I guess)
Upvotes: 5