Commit Graph

9370 Commits

Author SHA1 Message Date
Zhengbo Li 3c4786d542 fix 9610 (#11042) 2016-09-21 16:52:02 -07:00
Vladimir Matveev 2a206b3dd7 add check if expected directory path is non-empty string 2016-09-21 00:02:20 -07:00
Ryan Cavanaugh 53232b9680 Merge pull request #11002 from RyanCavanaugh/watchForTypes
Watch for changes in types roots
2016-09-20 17:12:18 -07:00
Ryan Cavanaugh 52fddfa137 Add TODO 2016-09-20 17:12:07 -07:00
Ryan Cavanaugh 6449e5c357 Lint 2016-09-20 16:56:50 -07:00
jramsay 6275da2a52 Merge pull request #10960 from Microsoft/throttleTypingsInstallerRequestsFinal
Add throttle limit to typings installer requests
2016-09-20 16:55:21 -07:00
Ryan Cavanaugh 8c899a6c60 An elegant weapon for a more civilized age 2016-09-20 16:52:34 -07:00
Vladimir Matveev 7ca85e0e4b move throttling to runAsync 2016-09-20 14:14:51 -07:00
Ryan Cavanaugh 2dfcafe2b3 ) 2016-09-20 12:11:39 -07:00
Ryan Cavanaugh 3c7b213a8c PR updates 2016-09-20 12:07:52 -07:00
Ryan Cavanaugh aa03a04c7f Use explicit coercion 2016-09-20 11:30:34 -07:00
Jason Ramsay 609e56ed8e - Reorganize nodeTypingsInstaller and typingsInstaller for testing purposes
- Add throttle tests
- Add full npm path
2016-09-19 22:27:11 -07:00
Ryan Cavanaugh 76f51ad37c Cleanup 2016-09-19 18:28:53 -07:00
Ryan Cavanaugh c0806439ea Refactor 2016-09-19 18:20:50 -07:00
Ryan Cavanaugh 46dfd68ef8 Always return [] 2016-09-19 18:00:42 -07:00
Ryan Cavanaugh 924a2bf03d Remove unused 2016-09-19 17:53:10 -07:00
Ryan Cavanaugh c1630e59d1 Fixup 2016-09-19 17:25:27 -07:00
Ryan Cavanaugh 6de3dc4f8b Cleanup 2016-09-19 17:04:51 -07:00
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
Jason Ramsay 4b9e554494 Add throttle limit to typings installer requests 2016-09-16 18:36:13 -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 5c604f92d7 correctly update external project if config file is added or removed 2016-09-15 15:39:16 -07:00
Kanchalai Tanglertsampan 7fd5699511 Merge branch 'release-2.0' into release-2.0.5 2016-09-14 16:57:59 -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
Mohamed Hegazy 9cabffe5db Merge branch 'release-2.0' into release-2.0_fix10625 2016-09-14 13:36:07 -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 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 d81ad4608d Remove unnecessary parentheses 2016-09-13 13:34:18 -07:00
Nathan Shively-Sanders 267042fdc3 Computed enum assignability is semi-structural 2016-09-13 13:34:09 -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 3683ec2b08 Fix lint 2016-09-13 13:31:38 -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 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 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 76fa7b9472 Remove unnecessary parentheses 2016-09-13 13:18:47 -07:00
Nathan Shively-Sanders b07f2da278 Computed enum assignability is semi-structural 2016-09-13 13:14:46 -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 661c2778ee Fix lint 2016-09-13 13:00:45 -07:00
Nathan Shively-Sanders 64e4f6f395 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:00:36 -07:00
Nathan Shively-Sanders a0c3d4f306 Fix both new enum assignability predicates
And update error reporting baseline (new error is less elaborate)
2016-09-13 13:00:31 -07:00
Nathan Shively-Sanders 7482d5b77d Enum literal is assignable to enum, even inside union
Previously, only number literals were assignable to enums inside unions.
2016-09-13 13:00:21 -07:00
Nathan Shively-Sanders dae4ec63be Number is assignable to enum, even inside union
Previously, numbers were not assignable to enums that were inside a
union
2016-09-13 12:59:42 -07:00