Commit graph

13213 commits

Author SHA1 Message Date
Ryan Cavanaugh
2612a74f63 Working version 2016-09-19 17:04:51 -07:00
Vladimir Matveev
55f6d4f90d do not adjust location being passed to the managed side (#10999)
do not adjust location being passed to the managed side

* remove redundant code
2016-09-19 16:57:19 -07:00
Vladimir Matveev
286a12edd1 defer settings format options on file until it is explicitly requested (#10971) 2016-09-18 21:14:39 -07:00
Vladimir Matveev
121b04ee36 (lshost): run second module resolution pass if first pass yielded non-ts file (#10959)
* (lshost): run second module resolution pass if first pass yielded non-ts file

* use length check
2016-09-16 15:49:20 -07:00
Vladimir Matveev
4668c99222 Merge pull request #10943 from Microsoft/update-external-project
correctly update external project if config file is added or removed
2016-09-16 14:39:00 -07:00
Vladimir Matveev
5c604f92d7 correctly update external project if config file is added or removed 2016-09-15 15:39:16 -07:00
Kanchalai Tanglertsampan
3a9d8506eb Update LKG 2016-09-14 17:01:03 -07:00
Kanchalai Tanglertsampan
7fd5699511 Merge branch 'release-2.0' into release-2.0.5 2016-09-14 16:57:59 -07:00
Kanchalai Tanglertsampan
5f1336be9e Update LKG 2016-09-14 16:38:11 -07:00
Yui
c98103b1fb Merge pull request #10928 from Microsoft/addTestFix10625
[Release-2.0] Add tests and baselines
2016-09-14 16:31:27 -07:00
Ryan Cavanaugh
bca3493ffb Merge pull request #10930 from RyanCavanaugh/release-2.0
Cherry-pick #10929 to release-2.0
2016-09-14 16:30:00 -07:00
Ryan Cavanaugh
d37391fcfc Allow type and NS references to UMD globals from modules
Fixes #10638
2016-09-14 16:11:23 -07:00
Yui T
48e51b5361 Add tests and baselines 2016-09-14 15:42:53 -07:00
Mohamed Hegazy
4ce2280559 Update LKG 2016-09-14 13:42:01 -07:00
Mohamed Hegazy
93e0451b5d Merge branch 'release-2.0_fix10625' into release-2.0 2016-09-14 13:40:14 -07:00
Mohamed Hegazy
9cabffe5db Merge branch 'release-2.0' into release-2.0_fix10625 2016-09-14 13:36:07 -07:00
Mohamed Hegazy
0c443c2569 Update LKG 2016-09-14 13:30:16 -07:00
Yui T
14b59b23e7 Address PR 2016-09-14 13:30:15 -07:00
Mohamed Hegazy
b6aeaab019 Update version 2016-09-14 13:13:34 -07:00
Yui T
ced8cf8670 Add tests and update baselines 2016-09-14 11:55:13 -07:00
Yui T
332b3165c3 Emit declaration file which inferred type alias with its value 2016-09-14 11:54:17 -07:00
Zhengbo Li
3c20df5e93 Create folders for sys.writeFile if folder doesn't exist (#10848)
* Create folders for sys.writeFile

* Use project root path for emit output file name

* Normalize project file path for external projects

* Patch writeFile for all sys implementations

* Use the original file for single inferred project case

* recursive create directory for all sys implementations
2016-09-13 16:20:42 -07:00
Zhengbo Li
2ca9953235 Support compile on save for inferred projects (#10847)
* Support compile on save for inferred projects

* Rename to remove the "VS" prefix
2016-09-13 16:14:55 -07:00
Vladimir Matveev
d14183c5a1 merge with origin/release-2.0.5 2016-09-13 15:59:04 -07:00
Nathan Shively-Sanders
82a4d58eb3 Merge branch 'release-2.0.5' of https://github.com/Microsoft/TypeScript into release-2.0.5 2016-09-13 13:43:31 -07:00
Nathan Shively-Sanders
28ec7d6177 Update baselines after cherry-pick to 2.0.5 2016-09-13 13:38:29 -07:00
Nathan Shively-Sanders
d81ad4608d Remove unnecessary parentheses 2016-09-13 13:34:18 -07:00
Nathan Shively-Sanders
71fa082a0c Update baselines 2016-09-13 13:34:13 -07:00
Nathan Shively-Sanders
267042fdc3 Computed enum assignability is semi-structural 2016-09-13 13:34:09 -07:00
Nathan Shively-Sanders
bfed54487e Update baselines for updated enum assignability 2016-09-13 13:33:45 -07:00
Nathan Shively-Sanders
d0f8be535e Enum assignability:loosen numbers+tighten computed
1. All numbers and numeric literals are assignable to all enums and enum
literals.
2. Computed enums are no longer assignable to anything except
themselves, even if they would otherwise be "semi-structurally"
compatible.
2016-09-13 13:31:50 -07:00
Nathan Shively-Sanders
e384317173 Update baselines 2016-09-13 13:31:42 -07:00
Nathan Shively-Sanders
3683ec2b08 Fix lint 2016-09-13 13:31:38 -07:00
Nathan Shively-Sanders
aa3d2501a1 More tests of enum assignability
1. Numeric literal <-> enum literal assignability
2. Computed enum <-> union enum assignability
3. Also rebaseline error reporting of existing enum cases.
2016-09-13 13:31:29 -07:00
Nathan Shively-Sanders
e17797979c Address PR comments
1. Cache results of isEnumTypeRelatedTo
2. Make numeric literal assignment stricter again.
3. Use isEnumRelatedTo for comparing enums to each other. This provides
the previous semi-structural semantics.
4. Because of the new distinction between computed enums (no union
members) and union enums (no computed values => a union of enum
literals), some semi-structural code moves out to the body of
`isRelatedTo`.
2016-09-13 13:31:26 -07:00
Nathan Shively-Sanders
90d685b737 Fix both new enum assignability predicates
And update error reporting baseline (new error is less elaborate)
2016-09-13 13:31:23 -07:00
Nathan Shively-Sanders
083f3426d1 Test that enum literal is assignable to an enum in a union 2016-09-13 13:31:18 -07:00
Nathan Shively-Sanders
c47cdb8df8 Enum literal is assignable to enum, even inside union
Previously, only number literals were assignable to enums inside unions.
2016-09-13 13:31:14 -07:00
Nathan Shively-Sanders
e32d854f0e Test that number is assignable to enum in a union 2016-09-13 13:31:10 -07:00
Nathan Shively-Sanders
f0b210cb59 Number is assignable to enum, even inside union
Previously, numbers were not assignable to enums that were inside a
union
2016-09-13 13:31:01 -07:00
Nathan Shively-Sanders
fcac9c4fc5 Update baselines after cherry-pick to 2.0 2016-09-13 13:22:49 -07:00
Nathan Shively-Sanders
76fa7b9472 Remove unnecessary parentheses 2016-09-13 13:18:47 -07:00
Richard Knoll
ab1df7b792 Merge pull request #10903 from Microsoft/safe_import_completions_2.0.5
Port safe import completions to release-2.0.5
2016-09-13 13:17:01 -07:00
Nathan Shively-Sanders
7d066fe51c Update baselines 2016-09-13 13:14:58 -07:00
Nathan Shively-Sanders
b07f2da278 Computed enum assignability is semi-structural 2016-09-13 13:14:46 -07:00
Nathan Shively-Sanders
046a37da63 Update baselines for updated enum assignability 2016-09-13 13:10:23 -07:00
Nathan Shively-Sanders
85f9568a2b Enum assignability:loosen numbers+tighten computed
1. All numbers and numeric literals are assignable to all enums and enum
literals.
2. Computed enums are no longer assignable to anything except
themselves, even if they would otherwise be "semi-structurally"
compatible.
2016-09-13 13:01:03 -07:00
Nathan Shively-Sanders
f50a43734b Update baselines 2016-09-13 13:00:58 -07:00
Nathan Shively-Sanders
661c2778ee Fix lint 2016-09-13 13:00:45 -07:00
Nathan Shively-Sanders
eb933f9567 More tests of enum assignability
1. Numeric literal <-> enum literal assignability
2. Computed enum <-> union enum assignability
3. Also rebaseline error reporting of existing enum cases.
2016-09-13 13:00:40 -07:00