33922 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
4a83d23d30 Merge branch 'main' into turn-off-web-server 2022-10-24 09:00:55 -07:00
TypeScript Bot
6af270dee0 Update package-lock.json 2022-10-24 06:34:04 +00:00
TypeScript Bot
2cc4c16a26 Update package-lock.json 2022-10-23 06:13:35 +00:00
Jake Bailey
60934915d9
Fix apparent typo in getStringMappingType (#51248) 2022-10-22 08:23:41 -07:00
TypeScript Bot
61c26096e3 Update package-lock.json 2022-10-22 06:11:59 +00:00
Andrew Branch
ef69116c41
Generate shortest rootDirs module specifier instead of first possible (#51244)
* Generate shortest rootDirs module specifier instead of first possible

* Simplify `min`
2022-10-21 16:05:58 -07:00
Jake Bailey
bbb42f453d
Fix typo in canWatchDirectoryOrFile found by CodeQL (#51262) 2022-10-21 10:04:40 -07:00
Ron Buckton
a56b254ad3
Include 'this' type parameter in isRelatedTo fast path (#51230) 2022-10-21 08:00:24 -04:00
Ron Buckton
3abd351c0e
Fix super property transform in async arrow in method (#51240) 2022-10-21 08:00:00 -04:00
TypeScript Bot
eed0511218 Update package-lock.json 2022-10-21 06:15:23 +00:00
Sheetal Nandi
2625c1feae
Make the init config category order predictable (#51247) 2022-10-20 13:23:18 -07:00
Oleksandr T
1ca99b3402
fix(50551): Destructuring assignment with var bypasses "variable is used before being assigned" check (2454) (#50560)
* fix(50551): handle destructuring variables used before assignment

* skip the error in binding elements that refer to the same destructuring

* fix binding element type
2022-10-20 10:57:43 -07:00
TypeScript Bot
3f28fa12df Update package-lock.json 2022-10-20 06:12:31 +00:00
Anders Hejlsberg
906ebe4933
Revert structuredTypeRelatedTo change and fix isUnitLikeType (#51076)
* Revert structuredTypeRelatedTo change, fix isUnitLikeType

* Accept new baselines

* Add regression tests

* Fix formatting in test
2022-10-19 15:46:00 -07:00
Oleksandr T
8ac465239f
change type (#51231) 2022-10-19 12:38:37 -07:00
Oleksandr T
245a02cbed
fix(51222): Go-to-definition on return statements should jump to the containing function declaration (#51227)
* fix(51222): add go-to-definition return statement to containing function

* add additional tests
2022-10-19 11:32:39 -07:00
Ron Buckton
2dff34e8c4
markAliasReferenced should include ExportValue as well (#51219) 2022-10-19 13:24:01 -04:00
TypeScript Bot
5ef2634f3d Update package-lock.json 2022-10-19 06:34:14 +00:00
Jake Bailey
d0f0e35c88
Remove old tslint comments (#51220) 2022-10-18 17:30:42 -07:00
Mateusz Burzyński
85d405a1d7
Fixed a false positive "await has no effect on the type" diagnostic with mixed generic union (#50833) 2022-10-18 14:10:03 -07:00
Joshua Chen
1f8959f5dc
fix: avoid downleveled dynamic import closing over specifier expression (#49663)
* fix: evaluate dynamic import specifier expressions synchronously

* refactor

* Update src/compiler/transformers/module/module.ts

Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>

* [Experiment]

Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2022-10-18 16:46:51 -04:00
Mateusz Burzyński
11066b264f
Rename internal functions to narrowTypeBySwitchOnTypeOf and narrowTypeByInKeyword (#51215) 2022-10-18 12:58:39 -07:00
TypeScript Bot
4c9afe8812 Update package-lock.json 2022-10-18 06:31:08 +00:00
Oleksandr T
f25bcb7c27
fix(49196): add jsdoc snippet for interface member functions (#51135) 2022-10-17 17:35:08 -07:00
Oleksandr T
7406ee9c14
fix(51170): Completing an unimplemented property overwrites rest of line (#51175)
* fix(51170): skip insertText for class members with existing initializer

* skip insertText for class members with existing tokens
2022-10-17 13:14:23 -07:00
Jake Bailey
a1d82fc9dc
Remove some unnecessary code discovered by rollup (#51204) 2022-10-17 10:49:56 -07:00
Nathan Shively-Sanders
9c88618ade Merge branch 'main' into turn-off-web-server 2022-10-17 08:15:33 -07:00
Alex Hsu
0481773a27
LEGO: Merge pull request 51200
LEGO: Merge pull request 51200
2022-10-17 03:24:51 -07:00
Alex Hsu
98c19cbbbe
LEGO: Merge pull request 51190
LEGO: Merge pull request 51190
2022-10-16 05:55:49 -07:00
TypeScript Bot
13c9b05384 Update package-lock.json 2022-10-16 06:12:30 +00:00
TypeScript Bot
673475e1c5 Update package-lock.json 2022-10-15 06:13:40 +00:00
Andrew Branch
f6cf51053e
Add more tracing to node16/nodenext resolution (#51168)
* Add more tracing to node16/nodenext resolution

* Update baselines after diagnostic change

* Trace non-matching conditions
2022-10-14 09:42:06 -07:00
TypeScript Bot
83c5581588 Update package-lock.json 2022-10-14 06:29:00 +00:00
Mateusz Burzyński
be5f0fe5ac
Add an extra regression test for awaited unresolvable recursive union (#51167) 2022-10-13 18:30:35 -07:00
Isabel Duan
2cb7e779d7
fix(50416): correctly names disabled export refactors (#50663)
* added test case to try to retrieve duplicate refactor as in #50416. 'verify.refactorAvailable' correctly retrieves nonduplicate refactors...

* optional arguments in refactorAvailable return `true` even if there is no single refactor that satisfies both

* it still passes :C

* Delete fixExtractToInnerFunctionDuplicaton.ts

* deleted extra test code

* fix 'verify.refactorAvailable' so that tests correctly check for multiple arguments

* fixes #50416

* refactor
2022-10-13 16:44:30 -07:00
Oleksandr T
2bcfed01f3
feat(37440): Provide a quick-fix for non-exported types (#51038)
* feat(37440): add QF to handle missing exports

* change diagnostic message

* add type modifier only if isolatedModules is set or if the export declaration already uses type modifiers
2022-10-13 15:43:49 -07:00
Jake Bailey
a24201c8ef
Remove VSDevMode.ps1 and createPlaygroundBuild (#51166) 2022-10-13 14:39:25 -07:00
Oleksandr T
2da62a784b
fix(51112): omit parameter names that precede the type (#51142) 2022-10-13 13:37:23 -07:00
Oleksandr T
cf1b6b7333
feat(51163): show QF to fill in the missing properties for the mapped type. (#51165) 2022-10-13 11:29:18 -07:00
Wesley Wigham
bdcc240d68
Remove bug-causing carve-out in conditional type instantiation that hopefully is no longer required (#51151) 2022-10-13 10:58:42 -07:00
Anders Hejlsberg
37317a208f
Check nested weak types in intersections on target side of relation (#51140)
* Check nested weak types in intersections on target side of relation

* Add regression tests

* Move logic from isRelatedTo to structuredTypeRelatedTo

* Fix lint error

* Add additional test
2022-10-13 08:20:07 -07:00
TypeScript Bot
9f49f9ccb0 Update package-lock.json 2022-10-13 06:22:26 +00:00
Anders Hejlsberg
4f54e7e947
Fix isExhaustiveSwitchStatement to better handle circularities (#51095)
* Fix isExhaustiveSwitchStatement to better handle circularities

* Add regression test
2022-10-12 07:22:06 -07:00
Valerian Clerc
503604c884
Overloads shouldn't gain @deprecated tags of other overloads in quick info (#50904)
* Add test case to check for the propogation of @deprecation tag to multiple overloads

* Implement filter to only include @deprecated tag in first signature after JSDoc comment
2022-10-11 16:58:03 -07:00
TypeScript Bot
e14a2298c5 Update package-lock.json 2022-10-11 06:22:40 +00:00
Nathan Shively-Sanders
34413b0feb Merge branch 'main' into turn-off-web-server 2022-10-10 16:58:37 -07:00
Jake Bailey
67256e50c4
Remove unused declarations array in extractSymbol's TargetRange (#51091) 2022-10-10 13:57:10 -07:00
Rafał Chłodnicki
9c87ded2b3
fix(51100): ensure tsserver shuts down when parent process is killed (#51107)
* fix(51100): ensure tsserver shuts down when parent process is killed

When using IPC channel (`--useNodeIpc`) for communicating with tsserver,
the child tsserver process did not shut down on parent process disconnecting
(for example due to it being killed).

Call exit() on IPC disconnect, same as stdio-based communication did
when pipe to parent process was destroyed.

* don't duplicate inherited method
2022-10-10 12:03:15 -07:00
Jake Bailey
c01ae01fac
Fix nightly publish oops in Gulpfile (#51131) 2022-10-10 09:33:45 -07:00
TypeScript Bot
a7d10f15bb Update package-lock.json 2022-10-08 06:08:40 +00:00