Commit Graph

31297 Commits

Author SHA1 Message Date
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
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
Wesley Wigham 3bbc963303 Style feedback 2020-10-22 16:42:35 -07:00
Ron Buckton c5800d1928 Remove shims, workaround for bug in peformance.measure 2020-10-22 13:52:10 -07:00
Anders Hejlsberg d1f87d18b1 Support partial reverse mapped inferences with tuple types (#41106)
* Support partial reverse mapped inferences with tuple types

* Add tests

* Accept new baselines
2020-10-22 11:27:41 -07:00
Andrew Casey dcb18d6f18 Adopt push-pop API 2020-10-22 11:01:42 -07:00
Andrew Casey 9ad9ec984e Add tracepoint in resolveTypeReferenceDirectiveNamesWorker 2020-10-22 10:58:52 -07:00
Andrew Casey 0b31e487c2 Add tracepoints within createProgram
These were useful during the Midgard investigation.
2020-10-22 10:58:51 -07:00
TypeScript Bot 97083ea6a2 Update package-lock.json 2020-10-22 06:25:39 +00:00
TypeScript Bot 1d36e9acd2 Update user baselines +cc @sandersn (#40950)
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-10-21 15:28:57 -07:00
Vincent Boivin 010ffdc121 New error format (#40974) 2020-10-21 15:02:49 -07:00
Eli Barzilay fe7ec1ee2e Tracing work
* Fix: `E` events need to have the same information that is on the
  corresponding `B` events.  (Superseded below.)

* Use `I` (not `i`) for instant events, so they show in devtools
  too.  (Though they don't go through the flame chart as they do in
  `about://tracing`, so they're not nearly as useful.)

* Abstract the code that writes the records in a single `writeEvent`
  local function.

* Make `args` optional, and default to `undefined` (which will not add
  them) at all.

* Drop the `{ "ts": ... }` wrapper around the `args`, after verifying
  that having arguments with names like `begin`, `end`, `pos`, `id`
  doesn't interfere with either UIs.

* Add `tracing.push`/`tracing.pop` for complete events, change a few
  `.begin`/`.end` to use these.  (The caveat is that until there's an exit
  handler to dump unterminated events, these won't show in the dump.  When
  that's done the push/pop variant can be used everywhere.)

* Add meta lines to name the process and the thread, and a line that
  avoids the warning when opening in devtools.
2020-10-21 17:31:33 -04:00
Anders Hejlsberg 5d021b401a Don't reduce 'keyof M' for mapped types with non-distributive 'as' clauses (#41186)
* Don't reduce 'keyof M' for mapped types with non-distributive as clauses

* Add regression test

* Accept new baselines
2020-10-21 12:16:46 -07:00
Wesley Wigham f4255dd237 Handle the new js binding element alias symbols in JS declaration emit 2020-10-21 11:24:19 -07:00
TypeScript Bot 672861abc6 Update package-lock.json 2020-10-21 06:25:41 +00:00
Andrew Branch 1f852ed747 Percent-encode source map URLs (#41102) 2020-10-20 13:11:52 -07:00
TypeScript Bot 1074fd45ff Update package-lock.json 2020-10-20 06:25:11 +00:00
Wesley Wigham 8b728c8bcd Merge pull request #41151 from Andarist/fix/create-element-new-jsx-transform
Fix/create element new jsx transform
2020-10-19 17:30:18 -07:00
Wesley Wigham 0ad22de146 Merge branch 'master' into fix/create-element-new-jsx-transform 2020-10-19 15:21:52 -07:00
Wesley Wigham c5cbd52f9a Merge pull request #41166 from weswigham/empty-jsx-child
Do not consider empty jsx expressions semantically important children
2020-10-19 15:12:45 -07:00
Wesley Wigham c29d3f8f6f Accept updated baselines 2020-10-19 14:57:51 -07:00
Wesley Wigham aa9445bc15 Merge branch 'master' into empty-jsx-child 2020-10-19 14:54:20 -07:00
Wesley Wigham 76df14126d Merge pull request #41167 from weswigham/revert-extension-implicit-import
Revert "Add extensions to jsx automatically added import, per babel change (#40871)"
2020-10-19 14:47:28 -07:00
Wesley Wigham 33b8a4fbd2 Accept updated baselines 2020-10-19 14:32:26 -07:00
Wesley Wigham de93173f53 Revert "Add extensions to jsx automatically added import, per babel change (#40871)"
This reverts commit 798b18be6e.
2020-10-19 14:27:28 -07:00
Wesley Wigham b8dfa28ca8 Do not consider empty jsx expressions semantically important children 2020-10-19 13:34:16 -07:00
Anders Hejlsberg 4638c685b1 Properly reduce intersections of string literal and template literal types (#41162)
* Properly reduce single element intersections

* Add regression test

* Accept new baselines
2020-10-19 13:05:29 -07:00