234 Commits

Author SHA1 Message Date
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
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
Andy
08030c7d02 Convert most of core.ts to accept ReadonlyArray (#17092)
* Convert most of core.ts to accept ReadonlyArray

* Fix lint

* Fix isArray
2017-07-11 17:39:33 -07:00
Andy
e7dc2a67ca Enable "object-literal-shorthand" lint rule (#16987) 2017-07-07 07:26:58 -07:00
Andrew Casey
ac72803bb2 Merge pull request #16684 from amcasey/Vsts434619
Watch for the creation of missing files
2017-06-29 13:41:18 -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
Andy
179a3e10b5 Handle depth in all readDirectory implementations (#16646) 2017-06-29 11:04:33 -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
Andy
a757e84284 Add hash of project file location to project info telemetry (#16397)
* Add hash of project file location to project info telemetry

* Rename to projectId
2017-06-09 13:12:31 -07:00
Ron Buckton
b8ee1691af Add wrapper to emit statics/decorators inside es5 class 2017-05-27 13:07:27 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -07:00
Ryan Cavanaugh
e3bb5d3f28 Update linting to avoid typechecking for booleanTriviaRule 2017-04-04 22:34:51 -07:00
andy-ms
2a2c1a9c14 Add comment 2017-03-19 10:03:36 -07:00
DLehenbauer
3f980bead0 Remove vestiges of WScript support (Issue #14414) 2017-03-10 07:10:58 -08: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
Vladimir Matveev
8c54bbaa04 use separate process to probe if drive is safe to watch (#14098)
use dedicated process to determine if it is safe to watch folders
2017-02-16 10:32:01 -08:00
Mohamed Hegazy
84fc29f900 Fix lint failures detected by tslint@4.4.2 2017-02-09 12:46:09 -08:00
Vladimir Matveev
915ffab8cc disable fs watcher for UNC paths on Windows (#13937) 2017-02-07 14:47:07 -08:00
Andy Hanson
7baeb9726a Merge branch 'master' into no_dom 2017-01-17 14:35:33 -08:00