Commit graph

31528 commits

Author SHA1 Message Date
Alex T
df33dd593f
fix(40441): show deprecated error for deprecated property in namespace (#40605) 2020-09-30 08:26:35 -07:00
Wesley Wigham
2428ade1a9
Match suffix _after_ prefix when inferring literals out of templates (#40841) 2020-09-29 16:34:58 -07:00
Andrew Branch
2084404b8f
Install playwright on demand (#40722)
* Remove playwright from package.json

* Install playwright on demand

* Adds debugging info to the playwright script

* Move installation first

* Get it working on node 10 again

* Update browserIntegrationTest.js

* Update browserIntegrationTest.js

Co-authored-by: Orta <git@orta.io>
2020-09-29 12:22:04 -07:00
Armando Aguirre
f645418833
Merge pull request #40783 from armanio123/FixCommentOnStartLine
Fixed bug with toggleLineComment ends in a start line
2020-09-29 11:43:51 -07:00
Alex T
1e9f42fb16
fix(40609): add tests to cover TemplateLiteralType extraction (#40834) 2020-09-29 11:29:51 -07:00
Sidharth Vinod
7c0f0d2c69
Update type diagnostic messages with --save-dev (#40776) (#40784)
* Update type diagnostic messages with --save-dev (#40776)

* Fix Baselines
2020-09-28 23:47:16 -07:00
Alex T
335ed915f1
fix(40609): fix crash for extracting type alias with several type arguments (#40820) 2020-09-28 23:12:15 -07:00
csigs
43b5fec3c0
LEGO: Merge pull request 40822
LEGO: Merge pull request 40822
2020-09-28 17:11:12 -07:00
csigs
79c7562b5d LEGO: check in for master to temporary branch. 2020-09-29 00:10:44 +00:00
Andrew Branch
3e824f18a8
Don’t offer non-relative non-paths path when baseUrl is undefined (#40813) 2020-09-28 12:06:39 -07:00
csigs
343a0a04d7
LEGO: Merge pull request 40814
LEGO: Merge pull request 40814
2020-09-28 11:11:15 -07:00
csigs
773b7abe2f LEGO: check in for master to temporary branch. 2020-09-28 18:10:45 +00:00
TypeScript Bot
dc4ccc7d41 Update package-lock.json 2020-09-28 06:21:37 +00:00
csigs
88c24e6b0d
LEGO: Merge pull request 40794
LEGO: Merge pull request 40794
2020-09-26 23:11:21 -07:00
csigs
ddf6c715ca LEGO: check in for master to temporary branch. 2020-09-27 06:10:39 +00:00
csigs
46abf6800e
LEGO: Merge pull request 40790
LEGO: Merge pull request 40790
2020-09-26 11:10:53 -07:00
csigs
80d2718c2d LEGO: check in for master to temporary branch. 2020-09-26 18:10:26 +00:00
TypeScript Bot
2a4167150f Update package-lock.json 2020-09-26 06:21:33 +00:00
csigs
ec673daf3a
LEGO: Merge pull request 40785
LEGO: Merge pull request 40785
2020-09-25 23:11:20 -07:00
csigs
f903d6b2ab LEGO: check in for master to temporary branch. 2020-09-26 06:10:36 +00:00
Armando Aguirre
8cf980af8d Fixed bug with toggleLineComment ends in a start line 2020-09-25 19:00:02 -07:00
Andrew Casey
9f5310fd8d Use the existing checkCrossProductUnion helper 2020-09-25 13:37:54 -07:00
Alex T
73f5f02e97
fix(40756): disable truncation for inferred type (#40764) 2020-09-25 13:01:08 -07:00
Alex T
8e86b24036
feat(40233): add JS Doc types to smart selection (#40338) 2020-09-25 12:36:04 -07:00
Andrew Branch
dc8952d308
jsx option affects emit (#40775) 2020-09-25 12:20:29 -07:00
Wesley Wigham
4156662e14
Accept updated baseline 2020-09-25 11:54:33 -07:00
Wesley Wigham
74779ba4fb
Add test 2020-09-25 11:50:40 -07:00
Wesley Wigham
17d996e6b2
Revert 7181c2af 2020-09-25 11:45:16 -07:00
csigs
b508914f47
LEGO: Merge pull request 40777
LEGO: Merge pull request 40777
2020-09-25 11:11:07 -07:00
csigs
aed23914a1 LEGO: check in for master to temporary branch. 2020-09-25 18:10:40 +00:00
csigs
62a86ec255
LEGO: Merge pull request 40757
LEGO: Merge pull request 40757
2020-09-24 17:11:31 -07:00
csigs
4df16170d4 LEGO: check in for master to temporary branch. 2020-09-25 00:10:54 +00:00
Andrew Casey
6650496e85 Enforce a size limit in getSpreadType
When a union is spread into a union, the sizes are multiplied,
potentially resulting in an enormous union (especially if there are
repeated spreads).  This check detects cases that used to run out of
memory.

Fixes #40754
2020-09-24 14:52:42 -07:00
Nathan Shively-Sanders
eac75f375d
CommonJS imports support destructuring+property access (#40702)
* CommonJS imports support destructuring+property access

Fixes #40578 for prettier

* will I ever remember semicolons? haha no

* move code around

* move function declaration closer to use

* Add missing space after `if`

Thanks to @weswigham for noticing this. Somehow it passed the linter.
2020-09-24 14:42:59 -07:00
Septs
e6fdcce2bf
feat: expose findAncestor. (#40325)
* feat: add closest node util

* chore: add definition to baseline file

* chore: alias findAncestor to getClosestNode

* move findAncestor to public

* move findAncestor to public
2020-09-24 14:02:56 -07:00
Nathan Shively-Sanders
03b70e6231
Remove old Typescript-*-Starter user tests (#40752)
This only removes the ones with repos that are now readonly; some repos
are still getting updates, so I left them in as tests.

Neither one fails right now, so there's no .log files to delete from the
baselines.
2020-09-24 13:47:41 -07:00
Sheetal Nandi
4f9713c515
Fix unnecessary new lines in output represented incorretly in the baseline (#40751) 2020-09-24 13:08:57 -07:00
Wenlu Wang
fc03982b73
Add missing visitor of template literal type (#40738)
* Add missing visitor of template literal type

* make linter happy
2020-09-24 12:48:29 -07:00
Andrew Branch
3b9eb1ebe9
Fix premature closing of AutoImportProviderProject for unbuilt monorepos (#40620)
* Fix premature closing of AutoImportProviderProject for unbuilt monorepos

* Update src/server/project.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

* Update API baseline

* Don’t override hasRoots

* Update API baselines

* Really actually update baselines

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-09-24 10:05:07 -07:00
TypeScript Bot
a1a9d6d2f8
Update user baselines +cc @sandersn (#40156)
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-09-24 09:24:06 -07:00
Nathan Shively-Sanders
5305e4a44e
Fix spec links in README (#40711)
* Fix spec links in README

I forgot to update them.

* specify that the spec is archived
2020-09-23 08:57:11 -07:00
Wesley Wigham
a960463cf3
Allow pattern literal types like http://${string} to exist and be reasoned about (#40598)
* Allow pattern literal types like `http://${string}` to exist and be reasoned about

* Allow bigint, number, null, and undefined in template holes

* Add test of the trivia case

* Handle `any` in template holes, add assignability rules for template -> template relations

* Explicitly test concatenated patterns

* PR Feedback
2020-09-23 01:08:58 -07:00
Wesley Wigham
a91c2879ef
Allow discrimination to identical object types when discriminating contextual types (#40574)
* Merge identical object types when discriminating contextual types

Co-authored-by: Orta <ortam@microsoft.com>

* Allow identical discriminants when discriminating, rather than trying to unify identical union members

* Fix lint

Co-authored-by: Orta <ortam@microsoft.com>
2020-09-23 00:51:14 -07:00
Wesley Wigham
ad2a07440c
Fix crash on js declaration emit of export assigned default augmented function (#40596)
* Fix crash on js declaration emit of export assigned default augmented function

* {sp}
2020-09-23 00:50:12 -07:00
Wesley Wigham
83574ba135
Reorder LKG tasks so protocol build isn't using partial LKG (#40717)
* Reorder LKG tasks so protocl build isnt using partial LKG

* Update scripts/produceLKG.ts

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-09-23 00:49:12 -07:00
uhyo
61910e8c97
Fix missing constraints for parenthesized infer T (#40406)
* add tests

* consider parenthesized types in getInferredTypeParameterConstraint

* update tests
2020-09-23 00:48:40 -07:00
Wesley Wigham
10b240cde3
Allow an infer type node to resolve its own name (#40483) 2020-09-22 21:21:13 -07:00
Alex T
78830f3be2
fix(40510): add element access expressions support in convertToOptionalChainExpression (#40524) 2020-09-22 18:17:17 -07:00
Andrew Branch
9eb6424b8f
Fix indentation of arrow functions returning parenthesized expressions (#40677)
* Fix indentation of arrow functions returning parenthesized expressions

* Add more test cases
2020-09-22 17:16:09 -07:00
csigs
aa30121dd1
LEGO: Merge pull request 40712
LEGO: Merge pull request 40712
2020-09-22 17:11:25 -07:00