Mohamed Hegazy
708caf9a72
Do not use unguarded process in tsc.ts
2018-03-13 11:03:12 -07:00
Nathan Shively-Sanders
a81f264d70
Call process.stdout._handle.setBlocking(true) ( #22389 )
...
* Call process.stdout._handle.setBlocking(true)
This prevents output from being truncated when the compiler can output
errors to stdout faster than it can receive them. This may slow down
performance for compilations for many errors, but those were already
quite slow.
* Disable tslint no-unnnecessary-type-assertion-2
It is wrong. It *is* necessary.
2018-03-08 12:38:30 -08:00
Andy
a564912d9a
Apply 'no-unnecessary-qualifier' lint rule ( #22009 )
2018-03-01 14:20:18 -08:00
Sheetal Nandi
2be231d339
Add createProgram on WatchCompilerHost
2018-01-19 15:52:21 -08:00
Sheetal Nandi
5bc78afcbb
Merge branch 'master' into builderApi
2018-01-08 13:01:09 -08:00
Sheetal Nandi
9b54d2e458
Create api to create Watch<BuilderProgram>
2017-12-07 19:22:17 -08:00
Sheetal Nandi
14f66efcc5
Update the emitting file, reporting errors part of the watch api
2017-12-05 22:15:24 -08:00
Sheetal Nandi
e694b9e3ba
Update the WatchCompilerHost creation
2017-12-05 17:51:35 -08:00
Sheetal Nandi
43c2610a69
More functions moved from system to WatchCompilerHost
2017-12-05 16:53:34 -08:00
Sheetal Nandi
944f8b8792
Instead of using system as object on WatchHost, create WatchCompilerHost that combines the functionality
2017-12-05 11:46:45 -08:00
Sheetal Nandi
576fe1e995
Expose the watch and builder API in the typescript.d.ts
2017-11-22 11:48:50 -08:00
Sheetal Nandi
a06f0c3d9f
Use builder state to emit instead
2017-11-22 11:48:50 -08:00
Ron Buckton
31c3d444f1
Merge branch 'master' into compareStrings
2017-11-03 23:01:51 -07:00
Andy
d998e97d8c
Apply 'prefer-for-of' tslint rule ( #19721 )
2017-11-03 15:20:35 -07:00
Andy
5e0c71e6ba
The global "JSON" object should always exist ( #19583 )
2017-10-30 16:20:55 -07:00
Ron Buckton
3cb15378d7
Improve performance of deduplication of sorted arrays
2017-10-26 17:51:09 -07:00
Ron Buckton
24437774a8
Further simplification
2017-10-26 11:56:29 -07:00
Sheetal Nandi
14febe2113
Rename watchedProgram.ts to watch.ts
2017-09-26 10:46:32 -07:00
Sheetal Nandi
fdb104b242
Merge branch 'master' into watchImprovements
2017-09-11 13:49:36 -07:00
Andy
e2141ad469
Mark some arrays as readonly ( #17725 )
...
* Mark some arrays as readonly
* Avoid unnecessary allocations and style changes
* Fix lint
2017-08-24 09:55:01 -07:00
Sheetal Nandi
6385f7e3bb
Get semantic diagnostics for the program from builder so that it caches the errors of unchanged files
2017-08-07 16:18:34 -07:00
Sheetal Nandi
031a63762f
Switch back to have tsc.ts the only file thats different in tsc.js generation now that api has tests
2017-08-07 11:31:12 -07:00
Sheetal Nandi
c814d8e847
Add tests for the tsc --watch
2017-08-07 11:24:07 -07:00
Sheetal Nandi
85b9254a60
Refactor out the tsc logic into another file so we can use that to test it out
2017-08-07 11:24:06 -07:00
Sheetal Nandi
9b18f7b61c
Use builder to emit the files from the tsc.js
2017-08-07 11:19:53 -07:00
Sheetal Nandi
ef5935b52c
Initial refactoring so that watch from tsc follows the tsserver projects
2017-08-07 11:19:52 -07:00
Andy
bb34bce420
Set a high stack trace limit in command-line and server scenarios ( #17464 )
2017-08-02 12:40:39 -07:00
Daniel Rosenwasser
e8421827e0
Merge pull request #16600 from alexeagle/pretty2
...
Add missing newline in --pretty diagnostics formatter
2017-07-14 12:22:05 -07:00
Andrew Casey
569ecabb0a
Address PR feedback
...
Make Program.getMissingFilePaths required
Assume getMissingFilePaths always returns a defined value
Make getMissingFilePaths internal
Replace nullable-bool with enum
Update type to reflect possibility of undefined
Use deepEqual to simplify tests
Make condition const
Don't bother cleaning up map before freeing it
Switch from foreach to for-of to simplify debugging
Use a Map, rather than a FileMap, to track open FileWatchers
Fix compilation errors
Introduce and consume arrayToSet
Fix lint warnings about misplaced braces
Delete incorrect comment
Delete from map during iteration
Eliminate unnecessary type annotations
2017-06-29 11:29:19 -07:00
Andrew Casey
4863ada22c
Track missing files
...
1. Expose missing files from the `Program`.
2. In `tsc --watch` and `tsserver`, add file watchers to missing files.
3. When missing files are created, schedule compilation (tsc) or refresh
the containing projects (tsserver).
2017-06-29 10:39:31 -07:00
Alex Eagle
0123bd0e20
Add missing newline in --pretty diagnostics formatter
...
It was compensated in tsc.ts, but then other compilers are missing a newline.
2017-06-17 09:20:55 -07:00
Sheetal Nandi
09f0b3471a
Merge branch 'master' into ownJsonParsing
2017-06-15 09:59:37 -07:00
Ron Buckton
4c65be8bad
Enable debug info when running tests
2017-06-06 16:01:52 -07:00
Sheetal Nandi
7db76edbae
Always return empty object when converting the json sourcefile into actual json object, allowing to continue compilation even if there are errors in the tsconfig files
2017-05-30 11:37:26 -07:00
Sheetal Nandi
ec2f9670d9
Merge branch 'master' into ownJsonParsing
2017-05-15 11:36:45 -07:00
Alex Eagle
4240f6f5d9
Extract diagnostics formatter used by --pretty
...
This allows compilers other than tsc.js to display nice in-context diagnostics
2017-05-12 16:19:46 -07:00
Sheetal Nandi
d7e9609ae5
Merge branch 'master' into ownJsonParsing
2017-05-11 09:10:35 -07:00
Arthur Ozga
cbbf6f8847
Merge branch 'master' into tripleEquals
2017-04-17 15:57:51 -07:00
Sheetal Nandi
6f568b3f26
Merge branch 'master' into ownJsonParsing
2017-04-17 13:40:49 -07:00
Andy Hanson
893e3242fb
Don't access sys.newLine inside unit tests
2017-04-11 14:24:32 -07:00
Ryan Cavanaugh
e3bb5d3f28
Update linting to avoid typechecking for booleanTriviaRule
2017-04-04 22:34:51 -07:00
Arthur Ozga
7e03429a8e
enforce triple-equals
2017-04-04 15:51:13 -07:00
Mohamed Hegazy
ae1983bce1
Show help if --all is specifided without --help
2017-03-22 12:45:36 -07:00
Mohamed Hegazy
7d56837f54
Merge branch 'master' into optionsDescription
2017-03-15 15:38:55 -07:00
Andy Hanson
8371eb6401
Update tslint to latest (next is still on 4.3) and lint for BOM
2017-03-01 10:37:13 -08:00
Mohamed Hegazy
0bc2840af4
Make generateTSConfig return a string
2017-02-08 12:41:40 -08:00
Mohamed Hegazy
486757f51f
Add simplified help view and full help view
2017-02-08 12:14:43 -08:00
Mohamed Hegazy
3459719872
Manually order options
2017-02-07 23:10:43 -08:00
Sheetal Nandi
0bbbc518bc
Merge branch 'master' into ownJsonParsing
2017-01-17 13:31:26 -08:00
Andy Hanson
30ccc7a5d0
Merge branch 'master' into map5
2017-01-17 10:42:27 -08:00