Sheetal Nandi
5bc78afcbb
Merge branch 'master' into builderApi
2018-01-08 13:01:09 -08:00
Daniel Rosenwasser
ccd5608392
Merge pull request #20416 from JoshuaKGoldberg/tell-me-im-pretty
...
Prettified timestamps and error reports in --pretty
2017-12-19 12:59:35 -08:00
Josh Goldberg
b3151707df
Converted to enum; marked internal
2017-12-19 12:19:39 -08:00
Sheetal Nandi
cb2636679b
When user provided resolution is used, invalidate resolutions for all files
...
In this case there is no way to tell if resolution has changed so resolution cache wont have answers
2017-12-08 12:38:34 -08:00
Sheetal Nandi
a75badfd11
Rename on WatchBuilderProgram
2017-12-07 19:59:00 -08:00
Sheetal Nandi
9b54d2e458
Create api to create Watch<BuilderProgram>
2017-12-07 19:22:17 -08:00
Sheetal Nandi
dc62bb9abc
Change builder to BuilderProgram so it is similar to operating on program
2017-12-07 18:58:15 -08:00
Sheetal Nandi
39bf33d841
Few renames
2017-12-07 10:02:02 -08:00
Sheetal Nandi
a21b074055
Update the builder to take options aligning with the WatchCompilerHost
2017-12-06 13:59:53 -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
c9a407e553
Add getDefaultLibLocation and getDefaultLibFileName and remove system from WatchCompilerHost
2017-12-05 19:01:27 -08:00
Sheetal Nandi
d22ba5e965
Move the system.write to trace on WatchCompilerHost
2017-12-05 18:53:18 -08:00
Sheetal Nandi
77e67311aa
Handle setTimeout, clearTimeout, clearScreen and report watch Diagnostics
2017-12-05 18:37:57 -08:00
Sheetal Nandi
abafddded2
Move internal functions in the watch to separate namespace
2017-12-05 18:13:45 -08:00
Sheetal Nandi
8cc2936352
Move watchFile and watchDirectory to WatchCompilerHost
2017-12-05 18:09:10 -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
f046d82034
Merge branch 'master' into builderApi
2017-12-05 11:45:26 -08:00
Josh Goldberg
a389ff5f39
Unit test failure; clearHostScreen function
2017-12-04 23:11:01 -08:00
Sheetal Nandi
1a91256c22
Make before and after program create callbacks optional
2017-12-04 15:41:36 -08:00
Sheetal Nandi
471c83b7f5
Rename WatchHost.moduleNameResolver to WatchHost.resolveModuleNames to align with compiler host
2017-12-04 15:11:25 -08:00
Sheetal Nandi
61fc9b94de
Rename Watch.synchronizeProgram to getProgram and return the updated program as part of this api
2017-12-04 15:04:22 -08:00
Sheetal Nandi
3dda2179e8
Rename getProgram to getExistingProgram
2017-12-04 14:35:37 -08:00
Sheetal Nandi
374536ba32
Merge branch 'master' into builderApi
2017-12-04 14:21:15 -08:00
Josh Goldberg
a4f83b0835
Added console clearing with a message to --watch starts
...
I advocated against immediately clearing the console when starting --watch in #17756 because it was confusing to have the console suddenly become blank, wait a while, and _then_ give output. After using the feature for a little while, I think it's a little disorienting how the console will only start clearing after the first recompile. This change clears the console and immediately prints a new "Starting compilation in watch mode..." message.
2017-12-03 14:45:33 -08:00
Josh Goldberg
eb5d8d0dd7
Prettified timestamps and error reports in --pretty
...
Timestamps look like Gulp's, with grey times inside white brackets.
Files have cyan filenames, yellow line and column numbers, and grey TS{####} errors. I wonder if those are actually useful for folks using the --pretty CLI: are they used for anything outside Visual Studio... Can we just get rid of them?
Re-uses compiler/program's color logic in compiler/watch. The relevant variables are now exported and marked `@internal`. Is there a preferred way of re-using this code in both those files?
2017-12-02 20:56:35 -08:00
Josh Goldberg
08c6dc99c6
"tsc --watch should clear screen on new compilation" Two: Electric Boogaloo ( #20389 )
...
* tsc --watch should clear screen on new compilation
* added optional clearScreen method to System]
* implemented via `x1Bc`, reset screen
* fixes 13020
* Feedback on if statements; api .d.ts baseline additions
* Stopped clearing screen in tsc.js's reportWatchMode
* Added unit tests
2017-12-02 11:11:49 -08:00
Sheetal Nandi
e102fee363
Use the results from affected file enumerator apis as Affected File result
2017-11-22 11:49:08 -08:00
Sheetal Nandi
85ce1d0398
Make the builder state as internal and expose builder instead of builder state
2017-11-22 11:49:08 -08:00
Sheetal Nandi
6d36a3d778
Make the versions in the source file non zero when the source file is created
2017-11-22 11:48:51 -08:00
Sheetal Nandi
3c5a6e1ae7
Allow watch host to specify module name resolver
2017-11-22 11:48:51 -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
Sheetal Nandi
3f34525c81
Handle the folder create/delete in the configured project
2017-11-06 15:22:48 -08:00
Sheetal Nandi
8fbfb5ffc0
Modify api to emit affected files using callback instead of generating in memory output
...
Also marking few apis introduced during watch improvements changes that are suppose to be internal for now
2017-10-18 13:34:13 -07:00
Sheetal Nandi
a5861af00e
Handle when directory watcher is invoked on file change
...
Fixes #19206
2017-10-17 14:13:12 -07:00
Sheetal Nandi
55bbcff348
Modify the changesAffectModuleResolution check
2017-10-10 16:36:09 -07:00
Sheetal Nandi
07ba906594
Handle the case when finishCachingPerDirectoryResolution is not called because of exception
...
Fixes #18975
2017-10-09 14:32:33 -07:00
Sheetal Nandi
32d705dbb5
Fine tune logging so that only triggers in watch are logged in normal logging vs verbose
2017-10-05 11:35:18 -07:00
Andy
efa274f722
When emitting all files, emit the changed file first ( #18930 )
...
* When emitting all files, emit the changed file first
* Export interface
2017-10-04 13:30:37 -07:00
Sheetal Nandi
7f969e8138
Making APIs as internal so that we can enable them after we have figured out final details
2017-10-02 16:27:26 -07:00
Sheetal Nandi
68d360585a
PR feedback
2017-09-26 16:21:15 -07:00
Sheetal Nandi
38f3a2b700
Renamed PartialSystem as DirectoryStructureHost and CachedPartialSystem as CachedDirectoryStructureHost
2017-09-26 11:05:52 -07:00
Sheetal Nandi
14febe2113
Rename watchedProgram.ts to watch.ts
2017-09-26 10:46:32 -07:00