8448 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
e8ddd419df 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-23 14:59:38 -07:00
Nathan Shively-Sanders
6fe1725ad1 Accept new baselines 2015-10-23 14:59:33 -07:00
Nathan Shively-Sanders
e12afac674 Improve naming of test members 2015-10-23 14:59:29 -07:00
Nathan Shively-Sanders
04e1d85314 Accept baselines
A couple of tests were previously updated to give an incorrect error
message.
2015-10-23 14:59:25 -07:00
Nathan Shively-Sanders
4610cfc9f3 Tests for interfaces merged w/classes
Both interfaces and classes have base classes/interfaces; all members are
available on an instance of the merged child.
2015-10-23 14:59:20 -07:00
Nathan Shively-Sanders
f16a969856 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-23 14:59:13 -07:00
Nathan Shively-Sanders
41d4e82068 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 14:56:50 -07:00
Nathan Shively-Sanders
36549572aa Add tests and accept baselines 2015-10-23 14:56:32 -07:00
Ron Buckton
42d055fdf3 Update LKG 2015-10-20 13:01:13 -07:00
Ron Buckton
34cc9bfe77 Tests 2015-10-20 12:58:30 -07:00
Ron Buckton
d8ed038f29 Fixes issue in emitExpressionIdentifier when combining --target ES6 with --module.
Fixes #5315.
2015-10-20 12:57:18 -07:00
Mohamed Hegazy
ad59202a93 Update LKG v1.7.2 2015-10-16 17:06:18 -07:00
Mohamed Hegazy
d8c25ccf3f Merge branch 'master' into release-1.7 2015-10-16 16:59:34 -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
Mohamed Hegazy
8b8d33d8b8 Fix comments 2015-10-16 16:29:11 -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
5b9469850a Merge pull request #5294 from Microsoft/fixDecoratorSwitch
Fixes an issue with decorators when compiling using tsc.exe
2015-10-16 14:54:07 -07:00
Ron Buckton
81e784c01e Fixed linter error 2015-10-16 14:36:36 -07:00
Ron Buckton
798ffa763d Switched switch statement to if branches.
Fixes #5229.
2015-10-16 12:36:51 -07:00
Mohamed Hegazy
35a303ac01 Do not report errors for classes and interfaces merging 2015-10-16 10:54:35 -07:00
Nathan Shively-Sanders
302db0a9d5 Merge pull request #5272 from Microsoft/es2015-target
Add ES2015 as a synonym to ES6
2015-10-15 12:46:47 -07:00
Paul van Brenk
9fda05d692 Merge pull request #5271 from Microsoft/updateVersion1.7.2
Update version to match VS version
2015-10-15 11:43:20 -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
c56cc79ece Update version to match VS version 2015-10-15 11:27:31 -07:00
Zhengbo Li
d703e09227 Merge pull request #5262 from zhengbli/Fix5127CR
Address code review from 5127
2015-10-14 18:20:06 -07:00
zhengbli
b7c93c012f Address CR from 5127 2015-10-14 17:50:29 -07:00
Mohamed Hegazy
e5365c1def Update LKG 2015-10-14 17:48:53 -07:00
Mohamed Hegazy
890e660b90 Merge branch 'master' into release-1.7 2015-10-14 17:43:50 -07:00
Zhengbo Li
8864b06cbf Merge pull request #5127 from zhengbli/newAddDirectoryWatcher
Add directory watcher for tsserver and tsc
2015-10-14 17:43:10 -07:00
Zhengbo Li
2bf39a65d9 Merge pull request #5261 from zhengbli/i5015
Re-read file content upon closing
2015-10-14 17:41:54 -07:00
zhengbli
fcfc25eeb0 Fix lint errors 2015-10-14 16:57:08 -07:00
zhengbli
f91bee0324 Re-read file content upon closing 2015-10-14 16:50:31 -07:00
zhengbli
c75499974e Fix rwcRunner 2015-10-14 16:31:27 -07:00
zhengbli
6013968b1f Address build errors 2015-10-14 16:25:27 -07:00
zhengbli
62664fdeda Add timer for batch processing directory changes 2015-10-14 16:09:41 -07:00
zhengbli
def268cccf Fix issues with removing roots 2015-10-14 15:48:25 -07:00
zhengbli
002f0c066b CR feedback 2015-10-14 15:10:05 -07:00
Nathan Shively-Sanders
c66bbd8cea Tests now correctly include a constructor 2015-10-14 12:43:56 -07:00
Mohamed Hegazy
21e30e0f59 Merge pull request #5235 from Microsoft/fixDecoratorDiagostics
Fix exception in compiler when type checking decorators with generics.
2015-10-14 12:29:08 -07:00
Nathan Shively-Sanders
e964cb10ca Make constructor use merged parent symbol
Previously in getSignatureFromDeclaration, it just used the parent symbol
without checking whether it was merged.
2015-10-14 12:24:22 -07:00
Nathan Shively-Sanders
12b7a998e9 Add test case 2015-10-14 12:23:37 -07:00
Mohamed Hegazy
5234bf698c Merge pull request #5033 from Microsoft/dirkb/fix_5032
Fixed #5032: tsserver: Format on type broken
2015-10-14 09:49:50 -07:00
Yui T
d04b6c4b2d Update LKG 2015-10-13 15:49:39 -07:00
Yui T
85f0240cea Merge branch 'master' into release-1.7 2015-10-13 15:31:01 -07:00
Vladimir Matveev
124447763b Merge pull request #5233 from Microsoft/relaxedUseBeforeDef
allow forward references to block scoped variables from functions
2015-10-13 14:19:01 -07:00
Mohamed Hegazy
99d448a167 Merge pull request #5231 from Microsoft/removeExperimentalAsyncFunctions
Remove experimental async functions
2015-10-13 14:17:36 -07:00
Ryan Cavanaugh
b2d666c489 Merge pull request #5184 from RyanCavanaugh/fix5096
Don't issue completion in JSX text
2015-10-13 13:27:39 -07:00
Vladimir Matveev
0465f1b0bb revert enum related changes 2015-10-13 13:18:58 -07:00
Ryan Cavanaugh
6bbfe56dca Use memberListCount 2015-10-13 13:16:44 -07:00