Commit Graph
251 Commits
Author SHA1 Message Date
Sheetal Nandi 8378f692c7 Directly assign values for watchFile and watchDirectory in node System 2018-03-08 12:18:04 -08:00
Sheetal Nandi ae8637c99f Merge branch 'master' into watchOptions 2018-03-03 10:51:59 -08:00
Andy a564912d9a Apply 'no-unnecessary-qualifier' lint rule (#22009) 2018-03-01 14:20:18 -08:00
Sheetal Nandi 9a160f2079 Merge branch 'master' into watchOptions 2018-02-21 10:44:12 -08:00
Ron Buckton ea8f5158c2 Revert BOM emit change 2018-02-12 12:02:34 -08:00
Sheetal Nandi c5b21d4a6d Fix the lint error 2018-02-06 14:13:13 -08:00
Sheetal Nandi b7f69102ce Make the PollingInterval, PollingChunkSize, PollingUnchangedThresholds customisable 2018-02-05 14:50:07 -08:00
Sheetal Nandi ca4af4f36c Merge branch 'master' into watchOptions 2018-02-05 13:07:12 -08:00
Adnan Chowdhury 9677b0641c Implement fallback hashing algorithm when crypto module is not available (#19941)
* Implement fallback hashing algorithm when crypto module is not available

* Fix lint errors

* Expose method internally and use in watch.ts

* Simplify syntax; Remove fallback from watch.ts
2018-01-25 16:17:58 -08:00
Sheetal Nandi 95b2630fb8 Add watchFile option to use fsEvents on parent directory 2018-01-25 09:30:27 -08: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 8e35c3103d Merge pull request #21244 from Microsoft/allowNonExistentInputInGetDirectories
Fix the invalid file/directory location when getting file system entries for caching the results
2018-01-17 15:39:49 -08:00
Sheetal Nandi 8281c7a137 Fix the invalid file/directory location when getting file system entry for caching read directory results
Fixes #20607
2018-01-17 15:00:22 -08:00
Sheetal Nandi 56d754cf0f Add watchDirectory to be using dynamic polling 2018-01-17 12:59:11 -08:00
Sheetal Nandi c3db9fadb0 Add tests for #19989, #20023 2018-01-17 12:59:11 -08:00
Sheetal Nandi 787c995985 Allow recursive directory watching on non supported file system 2018-01-17 12:59:10 -08:00
Sheetal Nandi bcfa02f501 Add option to watch using fs.watch instead of watching through polling 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 09caaa3775 Fix the api test failures 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 7f32f9ac78 Rename and restructure non polling watch file 2018-01-17 12:59:09 -08:00
Sheetal Nandi ca52f089da Rearrange the code to have functions after executing code 2018-01-17 12:59:08 -08:00
Sheetal Nandi ed5673c13c Simplify and correct the fsWatchFile callback handling with the stats invoked 2018-01-17 12:59:08 -08:00
Sheetal Nandi f6f465280d Fix the error callback of the present directory watcher 2018-01-17 12:59:08 -08:00
Sheetal Nandi 428e0529fd Rename through all projects with the same file symLink 2018-01-12 16:24:04 -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
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
Ron Buckton 2f941f33e2 Make BOM a constant 2017-11-13 16:36:13 -08:00
Ron Buckton ce29b4c36d Use UTF8 BOM in emit 2017-11-13 14:38:14 -08:00
Andy bd2e97597d Enable 'no-empty' tslint rule (#19769)
* Enable 'no-empty' tslint rule

* Fix bug
2017-11-07 09:22:28 -08:00
Andy cd9dbe694f Enable 'only-arrow-functions' lint rule (#19717) 2017-11-03 15:08:50 -07:00
Andy 1f282f19e0 Fix "noStringLiteral" lint errors (#19310) 2017-10-19 08:15:48 -07:00
Nathan Shively-Sanders 79c672424e Fix lint 2017-10-18 15:32:24 -07:00
Nathan Shively-Sanders 93c2b10f68 Fix tsc-instrumented
1. Make recursiveCreateDirectory correctly handle relative paths.
2. Remove dependency on Harness
3. Correctly increment iocapture0, iocapture1, ... iocaptureN.
4. Stop double-nesting baseline files.
2017-10-18 15:29:11 -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 17565d8407 Handle watches of missing directories and make project the module resolution host 2017-08-31 09:13:59 -07:00
Sheetal Nandi 4c79033894 Refactoring to watches and caching of system such that we minimize function expressions
Also unified watcher info logging
2017-08-31 09:13:59 -07:00
Sheetal Nandi b66b752561 Update based on feedback 2017-08-18 11:15:42 -07:00
Sheetal Nandi 989508245b Updating according to feedback from PR 2017-08-14 12:52:29 -07:00
Sheetal Nandi d0a23bb876 Merge branch 'watchImprovements' into builder 2017-08-12 15:35:30 -07:00
Karlis Gangis 51e9aef2a7 FileWatcher - handle empty directory path as the current directory Fixes #14559 2017-08-08 09:32:37 +03:00
Sheetal Nandi 273569f6fe Make the host cache store the fileName instead of undefined for the missing host files 2017-08-07 11:04:33 -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
Andy 1f09af9ab6 simplify isFileSystemCaseSensitive test (#17169) 2017-07-20 10:02:59 -07:00
Andy Hanson 96d537bc54 readFile may return undefined 2017-07-14 15:57:23 -07:00