zhengbli
38caf535fc
fix i4177 and sync with the TSJS repo
2015-10-26 08:23:50 -04:00
Mohamed Hegazy
ed5dc5536d
Merge pull request #5390 from maybejulian/declareOnTypeAliasInDts
...
Allow type aliases to omit 'declare' keyword in '.d.ts' files
2015-10-25 23:26:18 -07:00
Julian Williams
1d6f5c6781
Added grammar change to the comments.
2015-10-24 22:21:34 -04:00
Zhengbo Li
c3c66a40f1
Merge pull request #5354 from zhengbli/fixWriteSync
...
Change sys.write to async in tsserver
2015-10-24 18:57:14 -04:00
Julian Williams
a0939d962b
Added TypeAliasDeclaration to exceptions for required top level declare modifier
2015-10-23 22:43:11 -04:00
Nathan Shively-Sanders
c4e54685c6
Merge pull request #5384 from Microsoft/fix-union-of-variadic-functions
...
Fix union of variadic functions
2015-10-23 14:54:13 -07:00
Nathan Shively-Sanders
d26a4c8a87
Merge pull request #5359 from Microsoft/merge-inherits-interface-members
...
Merge inherits interface members
2015-10-23 14:51:13 -07:00
Nathan Shively-Sanders
742c701868
Use emptyArray instead of [] for no base types.
2015-10-23 14:26:45 -07:00
Nathan Shively-Sanders
ab2994ff87
Fix union types of variadic functions
...
The check used `=== len - 1` instead of `>= len - 1` to check whether a
parameter index might be pointing to a rest argument.
2015-10-23 13:34:09 -07:00
Vladimir Matveev
69986a158f
Merge pull request #5367 from Microsoft/cacheFileExists
...
cache results of fileExists check in default compiler host
2015-10-23 13:27:32 -07:00
Vladimir Matveev
19a222e718
addressed PR feedback
2015-10-23 13:09:05 -07:00
Nathan Shively-Sanders
fe19ccf7d7
Merge pull request #5368 from Microsoft/convert-diagnostic-text-to-es2015
...
Convert diagnostic text to es2015
2015-10-23 12:47:26 -07:00
zhengbli
bf1335b0e6
CR feedback.
2015-10-23 12:39:16 -07:00
Zhengbo Li
f431c82296
Merge pull request #5336 from zhengbli/fixWatcherIssue
...
Issue fix for config file watcher callback
2015-10-23 11:47:54 -07:00
Wesley Wigham
8e492a496f
Merge pull request #5370 from weswigham/system-export-var
...
Fix system export var when targeting ES6
2015-10-23 11:20:22 -07:00
Daniel Rosenwasser
7ed6c7a944
Merge pull request #5373 from brettm523/5298-normalize-err-msg-path
...
add normalizePath to to fix slashes
2015-10-22 23:54:01 -07:00
Brett Mayen
7c251bc605
add normalizePath to to fix slashes
2015-10-22 21:01:24 -07:00
Ryan Cavanaugh
bede6edc51
Merge pull request #5366 from RyanCavanaugh/typeOperatorSpacingRule
...
Type operator spacing rule
2015-10-22 16:33:21 -07:00
Wesley Wigham
dfada8ec84
remove es6 check form system module
2015-10-22 14:24:04 -07:00
Nathan Shively-Sanders
36050cdefd
Update diagnostic text to use ES2015, not ES6.
2015-10-22 13:23:12 -07:00
Vladimir Matveev
7158a65b15
move 'fileExists' caching to tsc
2015-10-22 13:22:45 -07:00
Vladimir Matveev
6dda170e13
cache results of fileExists check in default compiler host
2015-10-22 11:54:45 -07:00
Ryan Cavanaugh
69236c9be8
Add rule to check spaces around intersection/union type operators
2015-10-22 11:35:48 -07:00
Nathan Shively-Sanders
56322d2ecc
Root class merged with interface can be extended
...
I found that merging a class that has no base with an interface that has a
base class causes a crash because `getDefaultConstructSignatures` assumes
that any base must be a class base. Which was true in the previously buggy
state.
2015-10-22 11:26:19 -07:00
zhengbli
172ff54475
Move the changes to sys.write to server.ts
2015-10-21 16:11:14 -07:00
Vladimir Matveev
9afc2b3c8f
Merge pull request #5355 from Microsoft/initFieldsInConstructor
...
pre-initialize Node fields in constructor
2015-10-21 16:07:19 -07:00
Nathan Shively-Sanders
c072a5fd4b
getBaseTypes handles interfaces merged w/classes
...
Previously it assumed that if a class was present in the merge, only the
class base types needed to be used. This became false when classes and
interfaces could be merged.
2015-10-21 16:04:40 -07:00
Vladimir Matveev
7c064af052
initialize fields from constructor parameters
2015-10-21 15:33:30 -07:00
Vladimir Matveev
7fc29d1b62
pre-initialize node fields in constructor
2015-10-21 13:49:51 -07:00
zhengbli
214e21d05b
Change writeSync to async
2015-10-21 13:14:26 -07:00
Vladimir Matveev
912e49b668
do not indent token if its start line matches end line of previous token\trivia
2015-10-21 12:49:14 -07:00
Ryan Cavanaugh
853e9a2462
Merge pull request #5295 from RyanCavanaugh/detectAdjacentJsxElements
...
Better error recovery for adjacent JSX elements in expression positions
2015-10-20 13:16:02 -07:00
Anders Hejlsberg
a8fa81b187
Merge pull request #5344 from Microsoft/excessPropertiesWithUnion
...
Fix excess property check in union and intersection types
2015-10-20 13:05:51 -07:00
Ron Buckton
c3f36e145d
Merge pull request #5343 from Microsoft/fixES6LetInModule
...
Fixes emitExpressionIdentifier when combining --target ES6 with --module.
2015-10-20 12:51:13 -07:00
Anders Hejlsberg
6d8950e13c
Fix check for excess properties in union and intersection types
2015-10-20 12:39:43 -07:00
Ron Buckton
85e587e1d3
Fixes issue in emitExpressionIdentifier when combining --target ES6 with --module.
...
Fixes #5315 .
2015-10-20 10:59:23 -07:00
zhengbli
7ecf90ee2d
Fix issue: can't add a file back to a configured project after being deleted once
2015-10-19 22:56:00 -07:00
Zhengbo Li
1b3640760b
Merge pull request #5263 from zhengbli/pr5127cr
...
Address code review of #5127
2015-10-19 22:01:15 -07:00
zhengbli
39254b54ae
CR feedback
2015-10-19 21:48:40 -07:00
Vladimir Matveev
fb97e2f745
Merge pull request #5310 from Microsoft/convertConfigOptionsToCompilerOptions
...
extract 'convertCompilerOptionsFromJson' to separate function
2015-10-19 15:48:12 -07:00
Nathan Shively-Sanders
f9c40d11a9
Merge pull request #5267 from Microsoft/disallow-primitive-assignability-to-index-of-any
...
Disallow primitive assignability to indexer of type any
2015-10-19 15:48:04 -07:00
Vladimir Matveev
9fa268a44a
addressed PR feedback
2015-10-19 10:15:59 -07:00
John Vilk
f10c7cc154
Change ArrayBuffer.isView declaration to type guard for ArrayBufferView.
...
Also adds a test that checks that `ArrayBuffer.isView` appropriately narrows its argument to `ArrayBufferView`.
Fixes #5308 .
2015-10-18 20:05:30 -04:00
Vladimir Matveev
0bd50ca08c
extract 'convertCompilerOptionsFromJson' to separate function
2015-10-17 14:36:12 -07:00
Daniel Rosenwasser
6aeec13d7e
Merge pull request #5293 from Microsoft/bumpTo1.8
...
Bump version number to 1.8
2015-10-16 18:00:09 -07:00
Mohamed Hegazy
e98a76fb62
Merge pull request #5257 from Microsoft/module-merge-with-constructors
...
Module merge with constructors
2015-10-16 16:55:57 -07:00
Mohamed Hegazy
bb369f1423
Merge pull request #5290 from Microsoft/interfaceClassMergingFix
...
Do not report errors for classes and interfaces merging
2015-10-16 16:45:31 -07:00
Nathan Shively-Sanders
a8aa48e73f
Merge pull request #5230 from Microsoft/ambient-class-merges-overloads-with-interface
...
Ambient class merges overloads with interface
2015-10-16 15:08:59 -07:00
Ron Buckton
81e784c01e
Fixed linter error
2015-10-16 14:36:36 -07:00
Ryan Cavanaugh
6ccb2a5ef2
Better error recovery for adjacent JSX elements in expression positions
...
Fixes #5286
2015-10-16 13:47:57 -07:00