Commit Graph

34031 Commits

Author SHA1 Message Date
benbraou 804eb32208 feat(es2018): add definitions for Array.prototype.flatten and Array.prototype.flatMap (#20431)
* bug(esnext): add definitions for flatten and flatMap

Fixes #20410

* bug(esnext) add overloads for flatten
2018-01-08 14:59:37 -08:00
Mohamed Hegazy 00d4acaad2 Port generated lib files (#21076) 2018-01-08 14:57:31 -08:00
Mohamed Hegazy 24114d8c05 Merge branch 'master' of https://github.com/Microsoft/TypeScript 2018-01-08 14:57:26 -08:00
Andy a23bbe65e6 Use substring instead of substr (#20578)
* Use substring instead of substr

* Remove unused scanning of SyntaxKind.DotDotDotToken in jsdoc

* Remove other unnecessary jsdoc syntax kinds

* Move all pos++ together
2018-01-08 14:54:18 -08:00
Mohamed Hegazy 45a10c8401 Merge branch 'import-quickinfo' of https://github.com/jwbay/TypeScript into jwbay-import-quickinfo 2018-01-08 14:43:56 -08:00
Mohamed Hegazy bd6249542f Merge branch 'benbraou-issue20410' 2018-01-08 14:42:57 -08:00
Mohamed Hegazy 1235f78232 Merge branch 'issue20410' of https://github.com/benbraou/TypeScript into benbraou-issue20410 2018-01-08 14:42:51 -08:00
Andy 464df8f699 Fix build failure with newest @types/mocha (#21075) 2018-01-08 14:34:09 -08:00
Wesley Wigham b1a0261575 If declaration emit input is a module, output should be a module (#20626) 2018-01-08 13:58:34 -08:00
Wesley Wigham b2f2610b85 Use getInternalName not getLocalName (#20168) 2018-01-08 13:55:50 -08:00
Jing Ma 16a882eb8b Optimized annotation according to Spec (#19906) 2018-01-08 13:44:49 -08:00
falsandtru b18ee65418 Add Related section (#20151) 2018-01-08 13:35:28 -08:00
Mohamed Hegazy c632e44350 Merge branch 'master' into issue20410 2018-01-08 13:28:59 -08:00
Wenlu Wang 7154df10df add support for insertSpaceBeforeTypeAnnotation (#20466) 2018-01-08 13:25:02 -08:00
Daniel Rosenwasser 6d596c058e Merge pull request #20726 from kujon/indexable_types
Improved error messaging for index signature parameters
2018-01-08 13:23:39 -08:00
Wenlu Wang 0ecdc876f3 imporve conditional operator if missing colon token (#20498)
f2
2018-01-08 13:16:17 -08:00
Wenlu Wang a82d1f8580 ignore Initial check if left of DestructuringAsignment (#20906) 2018-01-08 13:13:23 -08:00
Wenlu Wang 06c9a28b36 fix narrowType check with template literals (#21024) 2018-01-08 13:06:58 -08:00
Sheetal Nandi 5bc78afcbb Merge branch 'master' into builderApi 2018-01-08 13:01:09 -08:00
Andy 86eab34758 type-operator-spacing: Just check for presence of space, not double-space (#20817) 2018-01-08 12:29:43 -08:00
Andy 6d361f89e3 Move isObjectLiteralElement to public utilities (#20605) 2018-01-08 12:29:21 -08:00
Andy 97c3e9c3ef Support all path mappings that end in "*" in completions (#21072)
* Support all path mappings that end in "*" in completions

* Check for uppercase TsConfig.JSON
2018-01-08 12:28:50 -08:00
Wesley Wigham 84e3681b79 Support timeouts in the parallel runner (#20631)
* Support timeouts in the parallel runner

* Apply PR feedback: unify code paths, use string as sentinel
2018-01-08 12:28:04 -08:00
Wesley Wigham b5fda4970d Use emptyObjectType for omitted members instead of unknownType (#20940)
* Use emptyObjectType for omitted members instead of unknownType

* Use similar logic as is used for empty arrays for missing elements
2018-01-08 12:27:11 -08:00
Andy 20c846d671 Add helper functions to simplify getCompletionEntryDisplayNameForSymbol (#20552) 2018-01-08 11:48:25 -08:00
Andy fd5ed5ac79 Have Set and Map constructors take ReadonlyArrays (#20606) 2018-01-08 11:39:52 -08:00
Andy 50fa0f61f5 Fix bug: Resolve module symbol before checking whether module export is a re-export (#20989)
* Fix bug: Resolve module symbol before checking whether module export is a re-export

* Remove unnecessary @nolib
2018-01-08 11:33:57 -08:00
Andy f34de1a1ca Support find-all-references starting from a reference path or reference types comment (#21007) 2018-01-08 11:33:14 -08:00
Andy fef7ad4986 Remove unncessary existence check (#21029) 2018-01-08 11:30:36 -08:00
Andy 1b2dc828d0 Fix lint failure (#21073) 2018-01-08 11:25:06 -08:00
Ryan Cavanaugh c6443f02af Merge pull request #21066 from Microsoft/UpdateSearchGuidelines
Update CONTRIBUTING.md
2018-01-08 10:40:05 -08:00
Andy fc18f08e63 Remove 'indexOf' helper, use 'arr.indexOf()' (#20194) 2018-01-08 10:39:52 -08:00
Andy f83283c068 Improve parse error for double comma somewhere inside a call expression (#20399) 2018-01-08 10:38:55 -08:00
Andy 7e150a914e Remove mutually-recursive functions (#20425) 2018-01-08 10:38:11 -08:00
Andy 76eafe0e75 Fix invalid cast (#20426) 2018-01-08 10:37:48 -08:00
Mohamed Hegazy c51dfa5596 Port generated lib files (#21071) 2018-01-08 10:35:13 -08:00
Andy 6f2ba15446 Start linting for double spaces (#20820)
* Start linting for double spaces

* Code review

* Fix cases that were excluded by countDoubleSpaces

* Remove extraneous closing parenthesis
2018-01-08 08:52:13 -08:00
Ryan Cavanaugh f63dd5356b Update CONTRIBUTING.md 2018-01-08 08:04:46 -08:00
csigs 943e52211b LEGO: Merge pull request 21060
LEGO: Merge pull request 21060
2018-01-07 15:11:08 -08:00
csigs fd96b81130 LEGO: check in for master to temporary branch. 2018-01-07 23:10:50 +00:00
Mohamed Hegazy 902d3b7055 Add release-2.7 to covered branches 2018-01-06 23:11:40 -08:00
csigs 28a818f6ee LEGO: Merge pull request 21054
LEGO: Merge pull request 21054
2018-01-06 21:10:35 -08:00
csigs c7c88140be LEGO: check in for master to temporary branch. 2018-01-07 05:10:17 +00:00
Daniel Rosenwasser 1041f09c27 Merge pull request #20941 from mariusschulz/stringCompletionsForIndexedAccessTypes
Return string completions for indexed access types
2018-01-06 21:07:00 -08:00
csigs 966fa167f5 LEGO: Merge pull request 21047
LEGO: Merge pull request 21047
2018-01-06 03:10:36 -08:00
csigs 0875916afb LEGO: check in for master to temporary branch. 2018-01-06 11:10:13 +00:00
Andrew Casey 1957dfef8e Merge pull request #20991 from amcasey/GH18794
Refine extends-to-implements code fix
2018-01-05 17:52:22 -08:00
Andrew Casey 4437476856 Merge pull request #21042 from amcasey/cannotFindModule
Make fixCannotFindModule return an empty array if there is no code action
2018-01-05 17:51:49 -08:00
Klaus Meinhardt bc2983def9 API: fix types to undefined union (#20909) 2018-01-05 17:36:33 -08:00
Andy e35585b938 Fix conflict between formatting rules (#21038) 2018-01-05 17:33:29 -08:00