Wesley Wigham
91f034669d
Conform lint of the future, unify quotations
2015-08-04 13:33:01 -07:00
Daniel Rosenwasser
8b8a138bd0
Use one call to 'reportDiagnostics'.
2015-07-31 10:47:36 -07:00
Daniel Rosenwasser
074a33d120
Double quotes.
2015-07-31 10:41:13 -07:00
Daniel Rosenwasser
e74f0f0f59
Fix issue with exit status by ensuring the same 'diagnostics' variable is reused.
2015-07-31 10:40:07 -07:00
Basarat Ali Syed
1251b46eb6
SourceFile.fileWatcher should be optional
2015-07-27 17:42:49 +10:00
Dan Quirk
5dfa6104f9
Turn off a few rules and more cleanup post merge
2015-07-08 17:42:26 -07:00
Dan Quirk
be1371d3cd
Merge master
2015-07-08 15:35:49 -07:00
Mohamed Hegazy
72050073bc
use double quotes
2015-06-26 10:25:58 -07:00
mihailik
e7e020e958
PR feedback - comments and whitespace adjustments
2015-06-26 14:38:25 +01:00
mihailik
133a86a377
Conflict with Object.prototype.watch in FireFox/Gecko
...
In Gecko engine `commandLine.options.watch` evaluates to a truthy value (a function). Adding an extra check to work around.
[Definition of CompilerOptions.watch in compiler/types](https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts#L1860 )
``` typescript
export interface CompilerOptions {
// . . .
watch?: boolean;
```
[Object.prototype.watch on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/watch )
> Warning: Generally you should avoid using watch() and unwatch() when possible. These two methods are
> implemented only in Gecko, and they're intended primarily for debugging use. In addition, using watchpoints
> has a serious negative impact on performance, which is especially true when used on global objects, such
> as window. You can usually use setters and getters or proxies instead. See Browser compatibility for details.
> Also, do not confuse Object.watch with Object.observe.
2015-06-26 09:22:55 +01:00
Dan Quirk
d4403df35e
var -> let
2015-06-25 17:36:19 -07:00
Mohamed Hegazy
224e7630ea
use namespaces instead of modules in the codebase
2015-06-12 09:01:48 -07:00
Paul van Brenk
f8424d0b0c
Minor clean up to make it more readable.
2015-04-22 18:00:09 -07:00
Paul van Brenk
5c44a0ff3e
Improve error message when encountering an invalid tsconfig.json file.
2015-04-22 15:58:04 -07:00
Paul van Brenk
80ae52b7e9
expose the config file processing throught the LS and
...
add a callback to enumerate files in a directory
2015-04-21 13:24:02 -07:00
Anders Hejlsberg
d15278bb86
Fix: File watchers not being disposed in -watch mode
2015-03-27 15:53:01 -07:00
steveluc
48482071f6
Moved findConfigFile to program.ts. Addressed pull request comments.
2015-03-24 14:03:21 -07:00
Anders Hejlsberg
c4b0302acf
Clean up diagnostic timers and -diagnostic output
2015-03-13 14:49:32 -07:00
Bill Ticehurst
24141f05db
Merge pull request #2245 from billti/ExportVersion
...
Made the 'version' string an exported property
2015-03-07 21:40:32 -08:00
Cyrus Najmabadi
a18934d6da
Address omitted return keyword.
2015-03-07 12:27:20 -08:00
Bill Ticehurst
da5caf5f72
Made the 'version' string an exported property
2015-03-06 17:09:55 -08:00
Bill Ticehurst
02eb7466a7
Fix watch to honor tsconfig.json setting
2015-03-05 23:32:54 -08:00
Daniel Rosenwasser
212aeb5e53
Revert "Run jake in interactive mode so output isn't lost."
2015-03-03 22:12:06 -08:00
Daniel Rosenwasser
35bfe4e394
Merge pull request #2063 from jbondc/contrib
...
Run jake in interactive mode so output isn't lost.
2015-03-03 12:30:34 -08:00
Cyrus Najmabadi
0be645943a
Print times in a manner more consistent with the 1.3 compiler.
...
This allows us to more accurately compare and constrast times between that
compiler and the current one.
2015-02-26 14:51:04 -08:00
Cyrus Najmabadi
990bbb2dce
CR feedback to use template strings.
2015-02-19 15:52:37 -08:00
jbondc
9ee494a1c9
Perfsys no longer used
2015-02-19 15:20:34 -05:00
jbondc
97ffcc3520
Run jake in interactive mode so output isn't lost.
...
Fix jake perftsc.
2015-02-19 09:43:44 -05:00
Cyrus Najmabadi
124a77cc3a
Remove 'ZeroBased' from all APIs, now that all APIs are zero based.
2015-02-16 19:35:45 -08:00
Cyrus Najmabadi
1098e80f4b
Remove one-based helper function.
2015-02-16 17:41:07 -08:00
Cyrus Najmabadi
35b489d7d1
Rename our one-based methods to more clearly indicate that that's what base they use.
2015-02-16 15:20:05 -08:00
Yui T
91a39dd000
Fix time measurement
2015-02-13 13:42:17 -08:00
Cyrus Najmabadi
66a363f449
Simplify the API for emitting and reporting exit statuses to callers.
2015-02-05 15:50:18 -08:00
Cyrus Najmabadi
337a99f62a
Change the API for getting diagnostics so that all calls go through a Program instance.
2015-02-05 01:47:29 -08:00
Cyrus Najmabadi
b12be3db19
Remove dependency from the typechecker to the compiler host.
...
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains. Now
we don't concatenate them up front. Instead, we just store the message chain
in the diagnostic itself. Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Cyrus Najmabadi
de30866460
Simplify the code for actually compiling within tsc.
2015-02-04 22:26:03 -08:00
Cyrus Najmabadi
28c1a23e7c
Track performance statistics in the ts module.
...
This allows us to greatly simplify the compile function in tsc.
2015-02-04 18:42:44 -08:00
Cyrus Najmabadi
476c8249ac
Remove 'isEmitBlocked' from the program API.
...
If emitting is blocked, then calling .emit on the program will simply return
immediately with an appropriate reason given in the EmitResult.
2015-02-04 17:48:29 -08:00
Cyrus Najmabadi
bb307f8163
Simplify the API for emitting code from the Program instance.
2015-02-04 16:53:14 -08:00
Cyrus Najmabadi
b6d083fa40
Do not publicly expose a way on a Program instance to get typecheckers with differing behavior.
...
Now, you can only get the non-diagnostics, pull-type-checker from the Program instance.
If you want diagnostics, you simply ask the Program instance for the diagnostics you want.
2015-02-04 16:11:38 -08:00
Cyrus Najmabadi
95702a89a7
Fix spelling of 'Filename' to be 'FileName'.
2015-02-03 16:08:46 -08:00
CyrusNajmabadi
fab351e0b6
Merge pull request #1913 from Microsoft/internalDTS
...
Provide an experimental flag that allows us to emit declarations except for nodes marked with '@internal'.
2015-02-03 16:29:04 -05:00
Cyrus Najmabadi
838b9b6998
Provide an experimental flag that allows us to emit declarations except for nodes marked with '@internal'.
2015-02-03 13:15:28 -08:00
Vladimir Matveev
288e38fa36
merge with master
2015-02-03 11:26:39 -08:00
Daniel Rosenwasser
394d6f4f0e
Bump version to 1.5.
2015-01-30 12:17:18 -08:00
Vladimir Matveev
ad42afc4af
resolve merge conflicts
2015-01-22 11:23:27 -08:00
Anders Hejlsberg
fbfec8a07d
Simplified cache logic + better error message when JSON not supported
2015-01-20 14:53:22 -08:00
Anders Hejlsberg
25e52a3975
Ignore symbolic links when enumerating directories
2015-01-20 09:58:25 -08:00
Anders Hejlsberg
1aa67b7fc4
Adding comments and a missing undefined check
2015-01-19 16:41:33 -08:00
Anders Hejlsberg
9c802e7bd3
Modifying logic to watch files at all times in -watch mode
2015-01-19 14:45:23 -08:00