Closed Phaiax closed 9 years ago
.. i will do a pr and i will do some other stuff :D
-> #49
Yes, there are a few issues that slipped in when I rewrote the source to match the github version of TS. This particular one comes from a clash of styles: TS tests for null but uses a lookup helper that delivers null instead of undefined, I skipped the lookup helper but didn't adapt the test (I prefer testing for truthiness).
I'll look through your pull request later this week (scheduled to cleanup the mess I made in the rush to get functionality working;-), but for these kind of slipups, bug reports (with reasoning, or with test case) will be sufficient, and welcome.
Fixed, using (script) and (!script). This exposes a TS (usage) issue (getSyntacticDiagnostics
on a new file throws) MicroSoft/TypeScript#2287, although adding sources that do not exist in the file system is not fully supported in tss anyway.
Hey
There are some occasions where you test script !== null, but
But ^^
I can make a pull request if it is easier for you