Typescript: Why doesn't visual studio code report the same errors that the command line tsc does?
问题 If I intentionally make a typo in my code I will get an error. Here is the correct code: declare const State: TwineState; If I delete the last character and then type tsc on the command line, it gives me this error: tsc/prod.spec.ts:7:22 - error TS2304: Cannot find name 'TwineStat'. 7 declare const State: TwineStat; But Visual Studio Code doesn't seem to realize there's any error. How I get my editor to show me the same errors that the tsc command recognizes? I'm pretty new to all these