vilicvane
c7e80e19f0
Avoid writing files that are not changed while compiling incrementally.
2016-02-06 16:51:25 +08:00
Tim Viiding-Spader
8e472db66f
Delete mention of nonexistent watcherPath param
...
It doesn't exist now.
It didn't exist in the commit that first mentioned it.
2016-02-02 15:44:47 -06:00
zhengbli
c244306514
address CR feedback: use typeof check instead of checking undefined and null value
2016-01-15 16:55:25 -08:00
zhengbli
c2f453b8fb
Fix the getCanonicalFileName in sys.ts and also check null value in file watcher call back
2016-01-15 14:58:04 -08:00
Zhengbo Li
dbfe862dbd
not casting relative filenames in 'tsc watch' to Path
2016-01-14 00:34:43 -08:00
Zhengbo Li
067573b0c3
cr feedback: simplify the removeFile function
2016-01-13 14:03:18 -08:00
Zhengbo Li
02531af991
Update the watchedFileSet to use Path instead of string for file names
2016-01-13 13:18:28 -08:00
Zhengbo Li
d22626f32d
Fix lint issue
2016-01-12 00:17:38 -08:00
zhengbli
114d2bd66d
Separate directory watching and file watching again to reduce logic complexity, because reference counting is a lot easier in this case
2016-01-11 11:35:46 -08:00
Zhengbo Li
697644c583
spell our dir to directory
2016-01-07 22:48:17 -08:00
Ron Buckton
c1205ebdfb
Fixed new linter warnings
2016-01-05 10:11:44 -08:00
Ron Buckton
cde12efec5
Merge branch 'master' into glob2
2016-01-04 12:24:44 -08:00
Zhengbo Li
8cf1a34f70
enable more than one callbacks for a watched file
2015-12-28 14:05:32 -08:00
Zhengbo Li
56a7217241
Merge branch 'master' of https://github.com/Microsoft/TypeScript into i6016
2015-12-22 16:13:38 -08:00
Zhengbo Li
631363fee1
Fix lint issues
2015-12-22 15:38:52 -08:00
Zhengbo Li
caa6eb4204
Reuse watchers between 'watchDirectory' and 'watchFile'
2015-12-22 15:26:21 -08:00
Zhengbo Li
178b2dabfe
Add type alias for filewatching callbacks
2015-12-21 17:02:00 -08:00
Daniel Rosenwasser
0a470add81
Removed unused declarations from 'sys.ts'.
2015-12-17 14:38:17 -08:00
Zhengbo Li
602cde4cc1
Merge branch 'master' of https://github.com/Microsoft/TypeScript into i6016
2015-12-15 08:49:05 -08:00
Zhengbo Li
d41901576a
Use FileMap instead of string array
2015-12-15 08:39:51 -08:00
Ron Buckton
247657ffb5
Merge branch 'master' into glob2
2015-12-14 18:13:56 -08:00
Ron Buckton
d8572508ee
Heavily revised implementation that relies on an updated 'readDirectory' API.
2015-12-14 15:21:12 -08:00
Paul van Brenk
9d1cc31144
Merge pull request #6074 from Microsoft/supportChakra
...
make ChakraHost more generally usefull
2015-12-11 16:55:39 -08:00
Paul van Brenk
27493736c3
trailing whitespace
2015-12-11 16:32:44 -08:00
Paul van Brenk
0c365daac5
make ChakraHost more generally usefull
2015-12-11 16:19:08 -08:00
Zhengbo Li
564c4af59b
Rollback to polling file watching
2015-12-10 23:27:07 -08:00
Zhengbo Li
36cc0e017b
fix linter errors
2015-12-10 17:59:07 -08:00
Zhengbo Li
5fa7bec226
revert back to polling watching for approaching release
2015-12-10 17:54:03 -08:00
Zhengbo Li
e67574446a
Fix too many watcher instances issue
2015-12-09 16:21:04 -08:00
Ron Buckton
def3ba1085
Added stubs to ChakraHost interface for readDirectoryNames/readFileNames
2015-12-07 15:32:32 -08:00
Ron Buckton
5de2fcc100
Merge branch 'master' into glob2
2015-12-07 15:15:22 -08:00
Ron Buckton
f9ae3e4f2b
Initial support for globs in tsconfig.json
2015-12-03 10:44:24 -08:00
Paul van Brenk
dfb32c5dae
Simplified after CR feedback.
2015-12-02 11:49:54 -08:00
Paul van Brenk
8d3e4f3475
cr feedback
2015-12-01 17:44:43 -08:00
Paul van Brenk
956a6b720a
Add support for Chakra Host in sys.
2015-12-01 16:18:06 -08:00
Wesley Wigham
8a93b48945
fix lint: prefer const
2015-11-04 14:51:36 -08:00
Martin Všetička
30499e7ee5
Support '/dev/stdout' as a valid '--out' parameter
2015-11-03 08:05:49 +01:00
Daniel Rosenwasser
40f10abe01
Forget about tty detection. It won't work in build tools.
2015-11-02 15:23:15 -08:00
Daniel Rosenwasser
fa2e614f9f
Merge branch 'master' into iFeelPrettyErr
2015-10-30 18:10:05 -07:00
zhengbli
3e37b3158b
Address code review at 5127
2015-10-14 21:36:35 -07:00
zhengbli
fcfc25eeb0
Fix lint errors
2015-10-14 16:57:08 -07:00
zhengbli
002f0c066b
CR feedback
2015-10-14 15:10:05 -07:00
zhengbli
8171dede90
Lint fixes and test fixes
2015-10-06 12:33:06 -07:00
Daniel Rosenwasser
c3e00a24f3
Only use colors if we are certain we are using a pseudoterminal.
2015-10-05 23:38:32 -07:00
Daniel Rosenwasser
7c73a661c5
Merge branch 'master' into iFeelPrettyErr
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/sys.ts
src/compiler/tsc.ts
2015-10-05 23:08:59 -07:00
zhengbli
f7e35d5975
Incorporating changes from #3780
2015-10-05 16:19:09 -07:00
zhengbli
17f0cce772
Update comments
2015-10-05 14:31:43 -07:00
zhengbli
7741ec0999
Use fs.watch for all directory watchers and some bug fixes
2015-10-05 14:07:51 -07:00
zhengbli
9db53f23cf
Add directory watcher to tsc
2015-10-05 13:12:13 -07:00
zhengbli
7fa26adf28
Redesigned directory watchers
2015-10-05 02:58:40 -07:00
Zhengbo Li
98eaeba4f1
temp save
2015-10-02 11:49:30 -07:00
Zhengbo Li
4dcf8c7737
bug fixes
2015-10-01 15:59:03 -07:00
Zhengbo Li
5daa100bf4
unify the node filewatcher in sys.ts and server.ts
2015-10-01 15:40:13 -07:00
zhengbli
0bc5c14d51
Change fileWatcher in sys for node 4
2015-10-01 15:25:43 -07:00
Mohamed Hegazy
7e6a27f1f7
Merge branch 'master' of https://github.com/Microsoft/TypeScript
2015-10-01 09:38:22 -07:00
Mohamed Hegazy
2b6d2a9f71
Merge branch 'master' of https://github.com/ShyykoSerhiy/TypeScript into ShyykoSerhiy-master
...
Conflicts:
src/compiler/sys.ts
src/compiler/tsc.ts
2015-09-30 16:30:49 -07:00
Wesley Wigham
b95e1ff6d8
This is what zero linter errors feels like
2015-09-30 16:10:52 -07:00
Daniel Rosenwasser
ea1882d76d
Merge branch 'master' into iFeelPrettyErr
...
Conflicts:
src/compiler/sys.ts
src/compiler/tsc.ts
2015-08-18 01:25:00 -07:00
Vladimir Matveev
bc3025b391
make 'require is defined' a precondition for Node-based sys
2015-08-14 20:53:38 -07:00
Vladimir Matveev
5a48508ffa
adjust check for node env to handle webpack\browserify
2015-08-13 13:14:38 -07:00
Wesley Wigham
91f034669d
Conform lint of the future, unify quotations
2015-08-04 13:33:01 -07:00
Wesley Wigham
5a6d476797
Fix as many linter errors as possible
2015-08-04 13:31:25 -07:00
Daniel Rosenwasser
dda058b85e
Use 'process.stdout.write' to ensure colors get displayed correctly on Windows.
2015-07-24 12:18:18 -07:00
Mohamed Hegazy
c54947102a
Merge pull request #3682 from Microsoft/nodeSystemHostWriteSync
...
Node System host write - need to loop since writeSync might not write all bytes in one request
2015-07-13 15:50:58 -07:00
shyyko.serhiy@gmail.com
30888da8fa
fixed indent issues
2015-07-09 13:12:50 +03:00
Dan Quirk
5dfa6104f9
Turn off a few rules and more cleanup post merge
2015-07-08 17:42:26 -07:00
shyyko.serhiy@gmail.com
1855a07580
Fix issue https://github.com/Microsoft/TypeScript/issues/3277
2015-07-08 13:26:44 +03:00
Daniel Rosenwasser
ba7fadeb12
Add support to tell whether output directs to a terminal emulator.
2015-06-30 23:26:23 -07:00
Dirk Baeumer
ddb60fc8ce
Node System host write - need to loop since writeSync might not write all bytes
2015-06-30 10:49:15 +02:00
Mohamed Hegazy
224e7630ea
use namespaces instead of modules in the codebase
2015-06-12 09:01:48 -07:00
Anders Hejlsberg
990f19b69e
Merge branch 'master' into tsConfigExclude
...
Conflicts:
src/compiler/sys.ts
2015-06-03 15:12:13 -07:00
Oleksandr Chekhovskyi
f516ebd0e0
Follow symlinks when enumerating files in a directory
2015-06-01 09:12:26 +02:00
Anders Hejlsberg
70d2938f4f
Support "exclude" property in tsconfig.json
2015-05-16 11:38:28 -07:00
Mohamed Hegazy
9fdeffeb08
Fix formatting and parameter names
2015-04-09 14:18:32 -07:00
Cyrus Najmabadi
d10a54c6b0
Use for-of in more places.
2015-03-13 10:36:29 -07:00
Cyrus Najmabadi
29bfc15d9b
use for-of in more places.
2015-03-13 09:41:54 -07:00
Anders Hejlsberg
25e52a3975
Ignore symbolic links when enumerating directories
2015-01-20 09:58:25 -08:00
Anders Hejlsberg
c342b58b23
Adding reference to core.ts in sys.ts
2015-01-15 18:18:19 -08:00
Anders Hejlsberg
f9f95ba614
Support for tsconfig.json files in command-line compiler
2015-01-15 13:22:23 -08:00
Daniel Rosenwasser
be1eb3430c
Put 'sys' into the 'ts' module.
2014-12-11 13:43:34 -08:00
Daniel Rosenwasser
c5510444d9
Use __filename for 'getExecutingFilePath'.
2014-12-11 13:43:29 -08:00
Yui T
d50ce1cb47
Refactoring compiler utility-related files to use short-hand
2014-11-18 12:05:40 -08:00
Daniel Rosenwasser
c514b9231d
Actually removed reference to the diagnostics file.
...
Addresses the original intention of #932 .
2014-10-23 13:43:22 -07:00
Daniel Rosenwasser
b371b02ea0
Addressed CR feedback.
2014-10-21 15:11:55 -07:00
Daniel Rosenwasser
aac8b3fae5
Removed Diagnostics from sys.ts in order to avoid cyclical build dependency.
...
Specifically, processDiagnosticMessages.ts was dependent on sys.ts, which was dependent on the rest of the compiler,
which meant that in a broken state of diagnostics, you could never compile processDiagnosticMessages.ts.
2014-10-21 14:48:43 -07:00
Anders Hejlsberg
7d3c006992
Making sys.getMemoryUsage optional.
2014-08-14 13:05:39 -07:00
Anders Hejlsberg
4d62b488b7
Include memory usage in -diagnostics report
2014-08-14 10:52:24 -07:00
Vladimir Matveev
6e7c95b817
use writeSync instead of stdout.write to make sure that stream is flushed
2014-08-12 11:30:11 -07:00
Mohamed Hegazy
9222711ace
change name of the flag to emitBOM
2014-08-06 14:24:47 -07:00
Mohamed Hegazy
b1335e1795
add generateBOM switch
2014-08-06 11:37:59 -07:00
Daniel Rosenwasser
30509f1ecc
Changed messages, got rid of 'oldProgram'.
2014-08-01 18:54:26 -07:00
Daniel Rosenwasser
91023227e4
Changed watchFile callback behavior.
...
We no longer recompile unless the new last-modified time is more recent.
2014-07-31 22:41:01 -07:00
Daniel Rosenwasser
617910b3d4
Support the '--watch' compiler flag.
2014-07-31 14:57:54 -07:00
Anders Hejlsberg
299f1c3390
Properly set exit code for process.
...
Supercedes #246 .
Includes provisions for buggy behavior of WScript.Quit.
2014-07-25 11:01:09 -07:00
Anders Hejlsberg
f3f5993770
Incorporating code review feedback.
2014-07-16 11:46:25 -07:00
Anders Hejlsberg
c1d0fd979d
More I/O fixes
...
Support for --charset command line option
File read and write errors are propagated into compiler diagnostics
emitFiles returns diagnostics in EmitResult
2014-07-16 10:57:05 -07:00
Vladimir Matveev
35ec15538a
moved getCanonicalName to 'core'
2014-07-14 14:31:46 -07:00
Vladimir Matveev
3646788571
derive value of 'useCaseSensitiveFileNames' from underlying platform for node base implementation of 'sys'
2014-07-14 11:16:21 -07:00
Anders Hejlsberg
bbd14c005d
Fix for I/O performance problems
...
sys.readFile checks whether file exists before reading instead of relying on exceptions
sys.writeFile returns a boolean result and doesn't use exceptions to communicate errors
Disabled code to create directories until performance has been verified
2014-07-14 10:45:24 -07:00
Mohamed Hegazy
214df64e28
Add snapshot of compiler sources
2014-07-12 17:30:19 -07:00