Ron Buckton
ea8f5158c2
Revert BOM emit change
2018-02-12 12:02:34 -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
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
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
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
Andy Hanson
b40613c4d7
Stop using "dom" types
2017-01-12 14:05:18 -08:00
Andy Hanson
757af2e1d6
Fix tsconfig inheritance in gulpfile -- must do it manually
2017-01-12 13:11:26 -08:00
Andy Hanson
145f0b2f18
Add createMultiMap to replace multiMapAdd and multiMapRemove
2016-12-28 09:33:43 -08:00
Andy Hanson
9e33585a80
Merge branch 'master' into map5
2016-12-27 12:56:05 -08:00
Kagami Sascha Rosylight
27a60e4580
fix linting errors
2016-12-18 15:44:54 +09:00