Commit graph

31425 commits

Author SHA1 Message Date
Wesley Wigham 3de6ed08a9
Merge pull request #41312 from weswigham/maybe-bind-comma-lhs
Bind comma expression LHS call expressions
2020-10-28 15:12:03 -07:00
Wesley Wigham d722392d81
Fix crashes when the global JSX namespace is an alias 2020-10-28 14:31:40 -07:00
Wesley Wigham 4ec02a56b8
Bind comma expression LHS call expressions 2020-10-28 13:48:29 -07:00
Wesley Wigham ca8a15d37b
Merge pull request #41287 from weswigham/bind-exports-assigned-object-as-alias
Bind `module.export = {Thing}` with alias symbols
2020-10-28 13:14:20 -07:00
Anders Hejlsberg bd27bd8d47
Don't relate unmatched parameter positions in signatures (#41308)
* Don't relate unmatched parameter positions in signatures

* Add regression test

* Accept new baselines
2020-10-28 11:55:32 -07:00
Oleksandr T 3eed4a61d1
fix(41208): add insertSpaceAfterOpeningAndBeforeClosingEmptyBraces to tsserver protocol (#41304) 2020-10-28 11:51:18 -07:00
Sheetal Nandi e17d95dada
When creating synthetic default symbol set parent as module symbol (#41282)
Fixes #40684
2020-10-28 11:24:40 -07:00
TypeScript Bot 4d85f03afa Update package-lock.json 2020-10-28 06:26:41 +00:00
Wesley Wigham 6acce0ca6f
Merge pull request #41075 from uhyo/fix-36958
allow type narrowing with NonNullExpression
2020-10-27 20:10:27 -07:00
Oleksandr T af38ab90e2
feat(41249): allow import.meta with module: es2020 (#41274) 2020-10-27 17:26:15 -07:00
csigs 40559531e7
LEGO: Merge pull request 41290
LEGO: Merge pull request 41290
2020-10-27 17:11:09 -07:00
csigs 56fd559174 LEGO: check in for master to temporary branch. 2020-10-28 00:10:41 +00:00
Wesley Wigham e96ce39b60
Fixup other fourslash test 2020-10-27 16:25:30 -07:00
Anders Hejlsberg 40b81224f9
Remove string literals from unions with matching template literals (#41276)
* Remove string literals from unions with matching template literals

* Add tests

* Accept new baselines
2020-10-27 16:21:07 -07:00
Wesley Wigham d1bc6b1ba6
Bind module.export = {Thing} with alias symbols 2020-10-27 15:43:00 -07:00
Michael 71cd5d522d
Fix two issues with ConvertToTypeOnlyExport codefix (#40490)
* Modify test case to reproduce error

* Fix TypeOnlyExport codefix to work with 3 or more type exports in the same declaration

The check to ensure that a fixed export declaration wasn't fixed again
was reversed. This only surfaced when 3 or more type exports existed in
the same declaration.

* Add failing test cases for comments being duplicated

* Fix convertToTypeOnlyExport codefix from duplicating leading comments

* Simplify convertToTypeOnlyExport when change is just inserting `type` keyword

Co-authored-by: Andrew Branch <andrew@wheream.io>
2020-10-27 15:08:20 -07:00
Oleksandr T 9ed608b439
fix(41244): ignore synthesized imports (#41267) 2020-10-27 13:22:02 -07:00
Wesley Wigham c923023494
Merge pull request #41191 from weswigham/control-flow-comma-exprs
Track control flow for comma expressions in call expressions
2020-10-27 12:37:02 -07:00
Wesley Wigham aaa8b74229
Merge pull request #41257 from weswigham/jsdoc-declaration-emit-names
Fix visibility lookup for cjs require aliases
2020-10-27 12:01:52 -07:00
csigs 489fc45c9a
LEGO: Merge pull request 41278
LEGO: Merge pull request 41278
2020-10-27 11:11:09 -07:00
csigs 6f25c09359 LEGO: check in for master to temporary branch. 2020-10-27 18:10:41 +00:00
Anders Hejlsberg f9dcd9ef98
Don't cache Ternary.Maybe results when recursion is encountered during variance measurement (#41218)
* Don't record Ternary.Maybe results in cache during recursive variance measurement

* Add regression test

* Accept new baselines

* Use Ternary.Unknown to signal variance recursion

* Add comments

* Fix comment
2020-10-27 10:53:13 -07:00
Oleksandr T 3754bb4455
fix(40994): change type for optional properties (#41011) 2020-10-27 10:05:40 -07:00
csigs 292b778204
LEGO: Merge pull request 41272
LEGO: Merge pull request 41272
2020-10-27 05:11:08 -07:00
csigs 269113b3dd LEGO: check in for master to temporary branch. 2020-10-27 12:10:38 +00:00
TypeScript Bot b61fb7893f Update package-lock.json 2020-10-27 06:26:28 +00:00
Andrew Casey 4518799622
Merge pull request #41261 from amcasey/TracingPerf
Stop doing tracing work when tracing is disabled
2020-10-26 23:01:27 -07:00
Andrew Casey e712d42e44 Stop doing tracing work when tracing is disabled 2020-10-26 17:27:44 -07:00
csigs 261d03b8ed
LEGO: Merge pull request 41260
LEGO: Merge pull request 41260
2020-10-26 17:11:18 -07:00
csigs 80024b02ab LEGO: check in for master to temporary branch. 2020-10-27 00:10:50 +00:00
Wesley Wigham 2abc8bd3fa
Limit binding element visibility painting to those biding elements which are declarations of aliases 2020-10-26 16:47:43 -07:00
Wesley Wigham ef810f5d02
Fix visibility lookup for cjs require aliases 2020-10-26 14:37:35 -07:00
Ron Buckton 90e944daba
Merge pull request #41253 from microsoft/nativePerformanceHooks2
Fix dependency order and observer registration
2020-10-26 12:56:44 -07:00
Ron Buckton 0847d85a4c Fix dependency order and observer registration 2020-10-26 12:27:34 -07:00
Daniel Rosenwasser 3517af8f80
Make 'getIndentString' just use a loop. (#41221)
* Make 'getIndentString' just use a loop.

* Added test.

* Accepted baselines.
2020-10-26 12:19:31 -07:00
csigs 6c298474e4
LEGO: Merge pull request 41251
LEGO: Merge pull request 41251
2020-10-26 11:11:18 -07:00
csigs 7fea44de6b LEGO: check in for master to temporary branch. 2020-10-26 18:10:37 +00:00
TypeScript Bot 8a34243bd7 Update package-lock.json 2020-10-26 06:26:32 +00:00
TypeScript Bot 36f08350c9 Update package-lock.json 2020-10-24 06:25:24 +00:00
Ron Buckton db6f66cc4e
Merge pull request #40593 from microsoft/nativePerformanceHooks
Migrate 'ts.performance' to use native performance hooks when available
2020-10-23 17:32:55 -07:00
Ron Buckton 7b0d049b89 PR feedback 2020-10-23 17:08:07 -07:00
Ron Buckton 8ed645ae1a
Don't emit duplicate triple-slash directives when using API to print a .d.ts (#40968) 2020-10-23 16:31:58 -07:00
Wesley Wigham 6092ecf912
Remove --skipPercent reference from README
Since the test runner feature is long gone
2020-10-23 15:22:31 -07:00
Andrew Casey 85ef91e223
Merge pull request #41180 from amcasey/ProgramTracing
Add tracepoints within createProgram
2020-10-23 13:08:53 -07:00
Oleksandr T e5ca77626e
fix(41176): Missing Compiler API predicate function: isTemplateLiteralTypeNode (#41177) 2020-10-23 14:15:04 -04:00
Wesley Wigham 94b0e0e389
Merge pull request #41190 from weswigham/handle-binding-element-aliases
Handle the new js binding element alias symbols in JS declaration emit
2020-10-23 10:31:08 -07:00
TypeScript Bot a191141821 Update package-lock.json 2020-10-23 06:25:37 +00:00
Ron Buckton 0b303ff08a Fix some rest cases and handling of unused results 2020-10-22 18:58:21 -07:00
Ron Buckton 28c4f32ddf Merge branch 'master' into destructuringEvaluationOrder 2020-10-22 17:14:23 -07:00
Wesley Wigham 3bbc963303
Style feedback 2020-10-22 16:42:35 -07:00