31450 Commits

Author SHA1 Message Date
Anders Hejlsberg
d2e3a35a03 Add missing 'break' statement 2020-11-20 09:11:05 -08:00
Anders Hejlsberg
dbe4a57004 Merge branch 'master' into fix39364 2020-11-20 06:58:19 -08:00
TypeScript Bot
eac0f6dc30 Update package-lock.json 2020-11-20 06:19:39 +00:00
Andrew Branch
308814f6fa
Update JSX test errors (#41602) 2020-11-19 16:38:08 -08:00
Martin Probst
6b04f50394
Do not parse template arguments in JavaScript files. (#36673)
Fixes #36662.
2020-11-19 11:41:35 -08:00
Sheetal Nandi
2cc67ec0a6
If there are no open files, do not schedule ensureProjectForOpenFiles (#41537) 2020-11-18 16:10:11 -08:00
Oleksandr T
9bbbe5c0c7
fix(41227): change message about incorrect property access with possible replacement with static access (#41275) 2020-11-18 12:50:32 -08:00
Nathan Shively-Sanders
d3abd35428
Unused Identifier codefix better understands constructors and methods (#41555)
* Unuse Identifier codefix understands constructors

Previously, it did not look for `super()` and `new this()` calls when
determining whether a constructor parameter could be deleted.

* better names, fix off-by-1 bug

* Codefix understands super methods now too

This unifies the code, changing it considerably.
2020-11-18 11:19:43 -08:00
TypeScript Bot
6643d97385 Update package-lock.json 2020-11-18 06:19:14 +00:00
Mateusz Burzyński
09eb3d3b9c
Fix/jsx global preferred over config implicit (#41476)
* Add actual baselines for a problem with global namespace being preferred over config & pragma implicit ones

* Fixed an issue with global React namespace being preferred over config & pragma implicit ones

* Do not try to mark JSX classic runtime symbols as used when automatic runtime is used
2020-11-17 17:52:32 -08:00
Oleksandr T
6369d89711
fix(41492): make more friendly handling the missing call function in binary expressions (#41502) 2020-11-17 09:42:27 -08:00
Andrew Casey
79ffd03f8b
Add tracing support to tsserver (#41374)
* Add tracing support to tsserver

Read the `TSS_TRACE` environment variable to determine which directory
trace files should be written to.

Notable changes from tsc tracing:
1) Drop all tracepoints that depend on type IDs
2) Write output to trace.PID.json
3) New, server-specific events (request/response, cancellation, etc)

* Drop try-finally blocks that aren't strictly necessary

* Fix lint error

* Trace background work (for diagnostics)

* Move try-finally blocks into session so tsc doesn't use them

* Add missing try-finally

* Use consistent capitalization

* Inline canPop call where underlying variable is available

* Clarify comments

* Include PID in build-mode file names

* Introduce more efficient popAll function

* Trace throwIfCancellationRequested rather than isCancellationRequested

* Remove unnecessary try-finally blocks

* Add a command-line argument for consistency with logging

* Fix rebase issues

* Address PR feedback

* Rename completionEvents to eventStack

* Drop assertStackEmpty as hard-to-maintain and marginally valuable

* Rename stepCancellation to stepCanceledEarly

* Rename stepEarlyCancellation to stepCanceled and use flag instead

* Check correct variable on exit
2020-11-16 09:26:28 -08:00
TypeScript Bot
4885dec80d Update package-lock.json 2020-11-15 06:17:33 +00:00
TypeScript Bot
566faa7a01 Update package-lock.json 2020-11-13 06:17:47 +00:00
TypeScript Bot
d7f8d8de73 Update package-lock.json 2020-11-12 06:17:29 +00:00
Ron Buckton
64a6e6c30d
Merge pull request #41507 from microsoft/fix32890
Fix definition of ts.Iterator
2020-11-11 20:50:09 -08:00
Ron Buckton
54e54f4f19 Fix definition of ts.Iterator 2020-11-11 18:42:12 -08:00
Wesley Wigham
573768aaf5
Merge pull request #41506 from weswigham/fix-post-LK-build
Fix post-LKG build
2020-11-11 17:14:01 -08:00
Wesley Wigham
ebaa926f39
Fix post-LKG build 2020-11-11 16:50:08 -08:00
Wesley Wigham
bfea348e40
Actually install playwright in artifact build script
Now that it's not installed by default
2020-11-11 16:33:39 -08:00
Andrew Casey
f79a78cd54
Merge pull request #41498 from amcasey/RemoveBeginEnd
Fold tracing.begin and end into push and pop
2020-11-11 15:23:11 -08:00
Andrew Casey
e8996a34a9 Remove redundant type annotation 2020-11-11 13:56:27 -08:00
Wesley Wigham
a5606ec5e9
Merge pull request #41467 from weswigham/fix-incremental-jsx-crash
Fix crash on attempting to suggest a ts import for a synthetic js resolution
2020-11-11 13:20:17 -08:00
Mattt
ad5508eb74
Update link to TypeScript-Handbook (#41460) 2020-11-11 16:11:53 -05:00
Wesley Wigham
44595042b2
Comment position feedback 2020-11-11 13:02:09 -08:00
Wesley Wigham
2c7c62d7fa
Merge branch 'master' into fix-incremental-jsx-crash 2020-11-11 13:00:47 -08:00
Andrew Casey
116000e548 Fold tracing.begin and end into push and pop
Storing the arguments on the stack will make it possible to forego
try-finally blocks when we start tracing in server scenarios, which have
to handle cancellation.
2020-11-11 12:58:00 -08:00
Andrew Branch
266d8de64a
Proposal: importModuleSpecifierPreference: project-relative (#40637)
* Add new importModuleSpecifierPreference value

* Add second test

* Update API baselines

* Clean up and add some comments

* Rename option value
2020-11-11 11:48:32 -08:00
TypeScript Bot
de4a57afdc
Update user baselines +cc @sandersn (#41423)
Co-authored-by: typescript-bot <typescript@microsoft.com>
2020-11-11 10:47:30 -08:00
Christopher Hiller
40adb27799
dispose Mocha Runner after use to avoid MaxlistenersExceededWarning (#41403)
* dispose Mocha Runner after use to avoid MaxlistenersExceededWarning

- removed manual `unhandledRejection` listener as Mocha v8.2.0 now has one

* Remove ts-ignore comment and commented out line.

Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2020-11-11 10:38:43 -08:00
TypeScript Bot
b5b0437a86 Update package-lock.json 2020-11-11 06:17:00 +00:00
csigs
1ddf22f990
LEGO: Merge pull request 41488
LEGO: Merge pull request 41488
2020-11-10 22:11:15 -08:00
csigs
0ffcbcf8bf LEGO: check in for master to temporary branch. 2020-11-11 06:10:47 +00:00
csigs
56d5fbe1c2
LEGO: Merge pull request 41485
LEGO: Merge pull request 41485
2020-11-10 16:11:13 -08:00
csigs
a335d84e17 LEGO: check in for master to temporary branch. 2020-11-11 00:10:40 +00:00
Nathan Shively-Sanders
9fb6acf1e1
Add missed resolveSymbol in commonjs import resolution (#41479)
Fixes resolution of export aliases in the postfix-property-access case
of commonjs require:

```js
const { x } = require('./foo').nested
x
```

This program would previously fail if `x` was an export alias.

Fixes #41422
2020-11-10 11:28:49 -08:00
csigs
728c9cc1bf
LEGO: Merge pull request 41480
LEGO: Merge pull request 41480
2020-11-10 10:10:57 -08:00
csigs
e5a860cc95 LEGO: check in for master to temporary branch. 2020-11-10 18:10:28 +00:00
csigs
d72829757d
LEGO: Merge pull request 41474
LEGO: Merge pull request 41474
2020-11-10 04:10:59 -08:00
csigs
fb1fb6c68b LEGO: check in for master to temporary branch. 2020-11-10 12:10:30 +00:00
TypeScript Bot
54f9b4901b Update package-lock.json 2020-11-10 06:16:03 +00:00
csigs
6b6c62d995
LEGO: Merge pull request 41471
LEGO: Merge pull request 41471
2020-11-09 22:11:15 -08:00
csigs
c7b1c011d3 LEGO: check in for master to temporary branch. 2020-11-10 06:10:43 +00:00
Nathan Shively-Sanders
0fc190ec32
Add more team members to pr_owners.txt (#41416)
1. I may have missed some frequent committers. Please let me know if I
did.
2. I'm not sure what pr_owners.txt is used for, besides the bot's
isTeamMember check. Maybe there's a reason the list is so small.
2020-11-09 14:08:43 -08:00
Wesley Wigham
dc7d997e4a
Fix crash on attempting to suggest a ts import for a synthetic js resolution 2020-11-09 14:05:17 -08:00
Nathan Shively-Sanders
64be2a8d16
Revert "Revert "feat(40197): handle uncalled function checks in binary expressions (#40260)"" (#41462)
This reverts commit cf3e28ea66bdfb4e438f86bd7d7860b66dae0ed8.
2020-11-09 11:34:41 -08:00
csigs
06a2210eb5
LEGO: Merge pull request 41436
LEGO: Merge pull request 41436
2020-11-06 16:11:19 -08:00
csigs
138e691eb5 LEGO: check in for master to temporary branch. 2020-11-07 00:10:50 +00:00
csigs
0b321a0334
LEGO: Merge pull request 41432
LEGO: Merge pull request 41432
2020-11-06 10:11:16 -08:00
csigs
af3c6073ce LEGO: check in for master to temporary branch. 2020-11-06 18:10:47 +00:00