Closed draivin closed 10 years ago
After updating the file some errors stop appearing.
Test case: Create empty file test.ts and run the following:
D:\> tss .\test.ts "loaded D:/test.ts, TSS listening.." > update 2 D:/tests.ts > for(;;) > "updated D:/tests.ts" >showErrors [{"file":"D:/tests.ts","start":{"line":2,"character":1},"end":{"line":2,"character":1},"text":"error TS1003: Identifier expected."}] > update 2 D:/tests.ts > for(;;) > ; "updated D:/tests.ts" > showErrors [] > update 2 D:/tests.ts > for(;;) > "updated D:/tests.ts" > showErrors []
confirmed as bug, fix upcoming (thanks for the useful test case). update was keeping part of the old source when the new source was shorter (so the ; was still there).
;
After updating the file some errors stop appearing.
Test case: Create empty file test.ts and run the following: