28 Commits

Author SHA1 Message Date
Sheetal Nandi
8cf8eb1720 Add some logging to the sys.watchFile and sys.watchDirectory 2019-08-06 16:08:25 -07:00
Sheetal Nandi
b6d520a7a5 Handle recursive symlinks when matching file names
Fixes #28842
2019-03-13 12:30:47 -07:00
Wesley Wigham
ee17915801
Fix build breaks (#29977)
* Some callbacks in watchUtilities werent being strictly checked due to the structural fallback

* Add direct dependeny on ms since mocha removed its impl

* Manually init stats collection on base runner like mocha.run now does
2019-02-19 14:30:58 -08:00
Sheetal Nandi
0cabb00b34 Use watch factory instead of direct host functions in tsbuild to provide detailed information on watch invokations 2018-12-21 12:53:14 -08:00
Sheetal Nandi
ca083809a4 Fix incorrect handling of preserveWatchOutput flag is in config file
Fixes #25620
2018-07-12 18:29:02 -07:00
Sheetal Nandi
9c6c333b67 Caches the recursive directory watchers so we do not have to traverse and recreate more children watches
Helps with #25018
2018-07-05 16:06:17 -07:00
Andy
e53e56cf82
Enable '--strictNullChecks' (#22088)
* Enable '--strictNullChecks'

* Fix API baselines

* Make sys.getEnvironmentVariable non-nullable

* make properties optional instead of using `| undefined` in thier type

* reportDiagnostics should be required

* Declare firstAccessor as non-nullable

* Make `some` a type guard

* Fix `getEnvironmentVariable` definition in tests

* Pretend transformFlags are always defined

* Fix one more use of sys.getEnvironmentVariable

* `requiredResponse` accepts undefined, remove assertions

* Mark optional properties as optional instead of using `| undefined`

* Mark optional properties as optional instead of using ` | undefined`

* Remove unnecessary null assertions

* Put the bang on the declaration instead of every use

* Make `createMapFromTemplate` require a parameter

* Mark `EmitResult.emittedFiles` and `EmitResult.sourceMaps` as optional

* Plumb through undefined in emitLsit and EmitExpressionList

* `ElementAccessExpression.argumentExpression` can not be `undefined`

* Add overloads for `writeTokenText`

* Make `shouldWriteSeparatingLineTerminator` argument non-nullable

* Make `synthesizedNodeStartsOnNewLine` argument required

* `PropertyAssignment.initializer` cannot be undefined

* Use one `!` at declaration site instead of on every use site

* Capture host in a constant and avoid null assertions

* Remove few more unused assertions

* Update baselines

* Use parameter defaults

* Update baselines

* Fix lint

* Make Symbol#valueDeclaration and Symbol#declarations non-optional to reduce assertions

* Make Node#symbol and Type#symbol non-optional to reduce assertions

* Make `flags` non-nullable to reduce assertions

* Convert some asserts to type guards

* Make `isNonLocalAlias` a type guard

* Add overload for `getSymbolOfNode` for `Declaration`

* Some more `getSymbolOfNode` changes

* Push undefined suppression into `typeToTypeNodeHelper`

* `NodeBuilderContext.tracker` is never `undefined`

* use `Debug.assertDefined`

* Remove unnecessary tag

* Mark `LiteralType.freshType` and `LiteralTupe.regularType` as required
2018-05-22 14:46:57 -07:00
Ron Buckton
d62a11ffc0 Merge branch 'master' into vfs 2018-05-01 18:58:31 -07:00
Ron Buckton
1dff0af646 More path cleanup 2018-05-01 18:53:54 -07:00
Sheetal Nandi
2e4f37849c More logs in tsc.js 2018-04-27 18:49:16 -07:00
Ryan Cavanaugh
8294259ec2 Remove all reference comments from compiler/ 2018-04-11 15:38:26 -07:00
Sheetal Nandi
a74e54ed69 Merge branch 'master' into watchOptions 2018-01-22 11:16:23 -08:00
Sheetal Nandi
ed23ca582a Merge branch 'master' into builderApi 2018-01-17 16:11:44 -08:00
Sheetal Nandi
787c995985 Allow recursive directory watching on non supported file system 2018-01-17 12:59:10 -08:00
Sheetal Nandi
fa8d4cba78 Move the polling settings to sys instead of watch utilities 2018-01-17 12:59:10 -08:00
Sheetal Nandi
c3b9904190 Add test to verify timeout queues 2018-01-17 12:59:10 -08:00
Sheetal Nandi
976f330044 Watch based on dynamic polling priority frequency queue 2018-01-17 12:59:09 -08:00
Sheetal Nandi
aa5e49a4d4 Update watchFile to take priority (which is currently polling interval being passed to the host) 2018-01-17 12:59:09 -08:00
Sheetal Nandi
cabb211702 Create polling interval as non optional parameter 2018-01-17 12:59:09 -08:00
Sheetal Nandi
5bd3f97b18 Merge branch 'master' into builderApi 2018-01-16 11:14:39 -08:00
Sheetal Nandi
69bb5ea8f0 Do not trigger the failed lookup location invalidation for creation of program emit files
Handles #20934
2018-01-11 12:34:58 -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
8cc2936352 Move watchFile and watchDirectory to WatchCompilerHost 2017-12-05 18:09:10 -08:00
Sheetal Nandi
43c2610a69 More functions moved from system to WatchCompilerHost 2017-12-05 16:53:34 -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
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
Sheetal Nandi
68d360585a PR feedback 2017-09-26 16:21:15 -07:00