Commit Graph

32018 Commits

Author SHA1 Message Date
Alexander T bbf56b044b Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38295 2020-05-20 20:13:50 +03:00
Alexander T a7364bf534 Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38463 2020-05-20 19:42:55 +03:00
Alexander T 2cea9d9d95 fix(38682): use stable typescript version (#38683) 2020-05-20 09:32:51 -07:00
Dmitry Makhnev dbaeed5ad8 Add d.ts for Intl.RelativeTimeFormat (#36084)
* feat(lib/es2020.intl): Add `Intl.RelativeTimeFormat` (part of #29129);

* fix(lib/es2020.intl): fix for tests and linters `Intl.RelativeTimeFormat` (part of #29129);

* feat(lib/es2020.intl): Add TSDoc for `Intl.RelativeTimeFormat` by review request https://github.com/microsoft/TypeScript/pull/36084#issuecomment-584769420;

* fix(lib/es2020.intl): Fix for tests;

Co-authored-by: Dmitry Makhnev <dmitriy.makhnev@jugru.org>
2020-05-20 11:06:28 -04:00
Alexander T e04ab6938a fix(38295): handle duplicate object literal keys which contain '+' and '-' tokens 2020-05-20 14:32:41 +03:00
Alexander T 528d82afd1 Merge branch 'master' of https://github.com/microsoft/TypeScript into bug/38463 2020-05-20 11:04:55 +03:00
Alexander T 1c72da6e49 fix(38463): show completions for index access properties 2020-05-20 10:17:20 +03:00
kingwl b59e4c51ae Merge branch 'master' into logical_assignment 2020-05-20 10:18:20 +08:00
Wesley Wigham 5f597e69b2 Support naming tuple members (#38234)
* Initial draft of named tuple members

* Show tuple labels and documentation in completions

* Swap allowed syntax to parameter-like

* Add quickfix for labeled tuple syntax mistakes

* Add refactoring to convert list of signatures to single overload

* Fix small bug in visitor verification

* Signature help for rest parameters which are unions of tuples are displayed as seperate entries now

* Expand sanity check test cases in conformance suite

* Add tests and code for preserving tuple names through spreads where possible

* More refactoring tests, some comment preservation and some fixed formatting of multiline tuples

* Handle missing parameter named in isValidDeclarationForTupleLabel

* Minor text fixes
2020-05-19 15:54:02 -07:00
csigs 24f53b06d2 LEGO: Merge pull request 38670
LEGO: Merge pull request 38670
2020-05-19 15:12:05 -07:00
csigs 0e4f1cb407 LEGO: check in for master to temporary branch. 2020-05-19 22:11:18 +00:00
Jack Works 7ec467e270 fix: extract const in jsx (#37912)
* fix: extract const in jsx

* Update src/services/refactors/extractSymbol.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

* Update src/services/refactors/extractSymbol.ts

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>

Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2020-05-19 14:29:49 -07:00
Daniel Rosenwasser 46f100f8ac Merge pull request #38500 from a-tarasyuk/bug/38485
regression(38485): Unable to specify `rawText` when programmatically creating tagged template literals
2020-05-19 14:24:25 -07:00
Nathan Shively-Sanders 415b2e7969 Merge pull request #38656 from a-tarasyuk/bug/33233
fix(33233): Code Folding on es5 object functions does not work (getOutliningSpans)
2020-05-19 14:18:42 -07:00
Nathan Shively-Sanders c5cca0ec18 Merge pull request #38659 from TimvdLippe/patch-3
Remove mentions of runtests-browser in CONTRIBUTING.md
2020-05-19 14:07:25 -07:00
Anders Hejlsberg 7ba0a6592d No contextual types from circular mapped type properties (#38653)
* No contextual types from circular mapped type properties

* Add regression test
2020-05-19 13:42:30 -07:00
Nathan Shively-Sanders 2227ba749c Merge branch 'master' into patch-3 2020-05-19 13:20:25 -07:00
Nathan Shively-Sanders f7007174f6 Merge pull request #38660 from TimvdLippe/patch-4
Fix debug command for Node debugging
2020-05-19 13:18:03 -07:00
Andrew Branch 707e977056 Ensure formatter can always get a newline character (#38579)
* Ensure formatter can always get a newline character

* Make FormatContext.host optional since it’s not necessary if format options are all applied

* Make FormattingHost required again
2020-05-19 13:14:32 -07:00
Tim van der Lippe 77075df2d7 Fix debug command for Node debugging
If you would run with `--inspect=true`, the following error would be thrown:

[12:08:13] > node --inspect-brk=true TypeScript/node_modules/mocha/bin/_mocha -R scripts/failed-tests -O "reporter=mocha-fivemat-progress-reporter" -g "implementsJSDocReferencesDeclarationEmit" --colors -t 0 built/local/run.js
Unable to resolve "true": unknown node or service
2020-05-19 12:11:29 +01:00
Tim van der Lippe e72e01d9ff Remove mentions of runtests-browser in CONTRIBUTING.md
The gulp tasks were removed in #30054, but the contributing
guidelines weren't updated accordingly.
2020-05-19 12:06:09 +01:00
csigs 611dd22b9a LEGO: Merge pull request 38655
LEGO: Merge pull request 38655
2020-05-18 21:11:16 -07:00
csigs 90b772a751 LEGO: check in for master to temporary branch. 2020-05-19 04:10:35 +00:00
csigs 6ba8c2725b LEGO: Merge pull request 38650
LEGO: Merge pull request 38650
2020-05-18 15:11:15 -07:00
csigs 92dc5b8754 LEGO: check in for master to temporary branch. 2020-05-18 22:10:33 +00:00
csigs 160d201fe6 LEGO: Merge pull request 38639
LEGO: Merge pull request 38639
2020-05-18 09:11:35 -07:00
csigs 48d6e8dee5 LEGO: check in for master to temporary branch. 2020-05-18 16:10:40 +00:00
Alexander T 2b703d254a fix(33233): add outlining for comments before property access expression 2020-05-18 15:26:46 +03:00
csigs b58c9f4f8e LEGO: Merge pull request 38633
LEGO: Merge pull request 38633
2020-05-18 03:11:09 -07:00
csigs 437d68d64b LEGO: check in for master to temporary branch. 2020-05-18 10:10:25 +00:00
Anders Hejlsberg 3c1f37e913 Use control flow analysis to check 'super(...)' call before 'this' access (#38612)
* Use CFA graph to check this/super accesses are preceded by super() call

* Accept cleaned-up API baselines

* Accept new baselines

* Add tests
2020-05-16 19:58:17 -07:00
csigs bc0d2ec26c LEGO: Merge pull request 38614
LEGO: Merge pull request 38614
2020-05-16 15:11:35 -07:00
csigs d154b58406 LEGO: check in for master to temporary branch. 2020-05-16 22:10:40 +00:00
kingwl 6f393e9196 accept new baseline 2020-05-16 08:16:45 +08:00
kingwl acc167dfc4 fix rebase conflict 2020-05-16 08:13:12 +08:00
kingwl 39ae072a1c add missing semi 2020-05-16 08:10:51 +08:00
kingwl f78a408ab5 Add more check 2020-05-16 08:10:51 +08:00
kingwl c0c60015c4 fix mission baseline 2020-05-16 08:09:46 +08:00
kingwl 11bed4456b avoid shouldCaptureInTempVariable 2020-05-16 08:09:46 +08:00
Daniel Rosenwasser 9681c1611c Remove newline 2020-05-16 08:09:46 +08:00
kingwl be708bbb0a fix assignment check of logical assignment 2020-05-16 08:09:45 +08:00
kingwl d2be8900dc Add type narrow 2020-05-16 08:09:45 +08:00
kingwl 67a4943e1f Add more case 2020-05-16 08:09:43 +08:00
kingwl 81ce254a73 Refactor logical assignment 2020-05-16 08:09:42 +08:00
kingwl cb2e71cdb9 fix operator 2020-05-16 08:09:41 +08:00
kingwl fafb82b01a make ci happy 2020-05-16 08:09:41 +08:00
kingwl ff4fca527d Fix cfa 2020-05-16 08:09:40 +08:00
Wenlu Wang 944bcf8459 Update src/compiler/transformers/utilities.ts
Co-Authored-By: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-05-16 08:09:39 +08:00
kingwl ede6214157 Add more check 2020-05-16 08:09:39 +08:00
kingwl 82fe658a48 Add cfa 2020-05-16 08:09:38 +08:00