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
Wesley Wigham
d178945cd4
rename variable
2015-10-20 15:29:21 -07:00
Wesley Wigham
79cf984a83
feedback form pr
2015-10-20 15:14:28 -07:00
Wesley Wigham
7a4e995f01
feedback form pr
2015-10-20 15:14:18 -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
Wesley Wigham
a83b85870c
Merge branch 'master' into out-module-concat
2015-10-19 17:17:08 -07:00
Vladimir Matveev
f9eaed7f7b
Merge branch 'master' into reachabilityChecks
2015-10-19 15:54:45 -07:00
Vladimir Matveev
d2045a8784
fix typo
2015-10-19 15:51:20 -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
96a4b237ac
Merge branch 'master' into capturedBlockScopedVars
2015-10-19 14:22:25 -07:00
Vladimir Matveev
f279c82409
fix linter issues
2015-10-19 14:21:53 -07:00
Vladimir Matveev
c13c8bf316
addressed PR feedback
2015-10-19 14:10:27 -07:00
Ryan Cavanaugh
eda6eca3c7
Merge remote-tracking branch 'upstream/master' into javaScriptModules
2015-10-19 13:53:52 -07:00
Sheetal Nandi
0496bfe278
Merge branch 'master' into tscJsFiles
2015-10-19 12:32:51 -07:00
Ryan Cavanaugh
5725fc4497
CR feedback
2015-10-19 11:02:20 -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
Ryan Cavanaugh
61b71008d7
Remove obsolute AMD logic from reference preprocessing in services
2015-10-16 17:35:43 -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
Ryan Cavanaugh
2f7719b61d
Address CR feedback
2015-10-16 16:40:04 -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
Vladimir Matveev
7b126170d1
Merge branch 'master' into reachabilityChecks
2015-10-16 13:13:51 -07:00
Ron Buckton
798ffa763d
Switched switch statement to if branches.
...
Fixes #5229 .
2015-10-16 12:36:51 -07:00
Daniel Rosenwasser
3749fe854d
Bumped version to 1.8.0.
2015-10-16 12:28:48 -07:00
zhengbli
e7e1fa72ec
Add sortBeforeComparison option back to arrayIsEqualTo
2015-10-16 12:00:31 -07:00
Mohamed Hegazy
35a303ac01
Do not report errors for classes and interfaces merging
2015-10-16 10:54:35 -07:00
Vladimir Matveev
b8a3564d28
use absolute path as key to store files, correctly handle scenarios when file names differ only in casing
2015-10-15 14:43:51 -07:00
Daniel Rosenwasser
ec0d49a312
Always use a string literal type if contextually typed by any string literal types.
2015-10-15 14:26:27 -07:00
zhengbli
ea9bf7313a
CR feedback
2015-10-15 13:53:37 -07:00
Daniel Rosenwasser
725bda834a
Merge branch 'master' into stringLiteralTypes
2015-10-15 13:12:49 -07:00
Sheetal Nandi
acf7de7d34
Merge branch 'master' into tscJsFiles
2015-10-15 12:30:55 -07:00
Nathan Shively-Sanders
53188d9cb8
Add ES2015 as a synonym to ES6
...
In ModuleKind, ScriptTarget and associated command line arguments.
2015-10-15 11:35:52 -07:00
Paul van Brenk
4cd62de8d4
Shorten the key we use for the loc message.
2015-10-15 11:22:22 -07:00
Sheetal Nandi
5aa7086b81
Use ts.indexOf instead of Array.indexOf method
2015-10-15 11:04:25 -07:00
Nathan Shively-Sanders
6798bd576b
Primitives are not assignable to any-type indexers
...
`string/numberIndexTypesRelatedTo` needs to prevent primitives from being
assignable to an indexer of type 'any'. However, these two functions take
an apparent type, which no longer has the primitive flag set. I thought of
three ways to provide this information:
1. Pass the original type into `string/numberIndexTypesRelatedTo` and
check its flag.
2. Record a boolean `isPrimitive` before converting to the apparent type,
and pass it to `string/numberIndexTypesRelatedTo`.
3. Create a helper function `isPrimitive` that takes the apparent type and
compares it to globalString/Number/Boolean/ESSymbolType.
I decided on (1) because it seems like the simplest and safest. But none
of the options are elegant. Please suggest improvements.
2015-10-15 09:45:38 -07:00
zhengbli
3e37b3158b
Address code review at 5127
2015-10-14 21:36:35 -07:00
zhengbli
b7c93c012f
Address CR from 5127
2015-10-14 17:50:29 -07:00