Commit Graph
12016 Commits
Author SHA1 Message Date
ZzzenandNathan Shively-Sanders cfd550e397 Avoid bogus circularity error on context sensitive expando assingment (#50487)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-03-16 10:12:23 -07:00
Jake Bailey e0124040f0 Revert PR #52589 (#53280) 2023-03-16 09:59:02 -07:00
Jake Bailey 7f292bf2a1 Revert PR #51580 (#53283) 2023-03-15 20:19:23 -07:00
Mateusz Burzyński 63495beb1a Fixed an issue with spreading a spreadable generic expression into generic JSX (#51580) 2023-03-15 14:57:37 -07:00
Oleksandr T 7a65c341ce fix(53204): Bug: __runInitializers(this) is emitted before super() call (#53268) 2023-03-15 12:59:19 -07:00
Jake Bailey dfa30bbe2a Ensure moduleType is structured during cloneTypeAsModuleType (#51136) 2023-03-15 12:56:11 -07:00
Mateusz Burzyński 074bf34633 Do not resolve apparent type of mapped types with a tuple constraint (#52651) 2023-03-15 10:46:12 -07:00
Mateusz Burzyński eb6aaea86e Fixed symbol declarations for generic filtering mapped types (#53207) 2023-03-15 10:43:45 -07:00
Mateusz Burzyński 78089b4964 Add intra expression inference sites based on JSX attributes (#52837) 2023-03-15 10:42:40 -07:00
Wesley Wigham 2b9d792828 Fix #33569 - Enable declaration emit for late-bound function members (#53034) 2023-03-15 10:20:35 -07:00
Anders Hejlsberg 9769421a63 Defer resolution of indexed access types with reducible object types (#53098) 2023-03-14 14:15:32 -07:00
Mateusz Burzyński 2953bcdf2e Add an extra test case for mapped type relationships (#53232) 2023-03-14 09:48:05 -07:00
Sheetal Nandi 46d70d79cd When resolving type reference from custom typeRoot localtion use mangled scope name if the package is scoped name (#53166) 2023-03-10 09:58:41 -08:00
Mateusz Burzyński e7753831e9 Filter out non-array types when contextually typing array literal elements (#52589) 2023-03-10 09:34:03 -08:00
Oleksandr T 0e3e14d39e fix(52992): no add missing properties quick for nested object literal (#53004) 2023-03-09 10:00:55 -08:00
Oleksandr T 2ab9e7edd9 fix(53011): Illegal declaration file can be emitted (duplicate parameter names) when spreading tuples into parameter positions (#53028) 2023-03-09 09:47:49 -08:00
Mateusz Burzyński d681520a14 Fixed array expression spreads into variadic const calls (#52845) 2023-03-08 14:45:58 -08:00
Mateusz Burzyński 615a97b1d4 Add an extra test for excess property check for intersection containing a recursive type (#53100) 2023-03-08 12:34:47 -08:00
navya9singh 74a37f8203 Fix(49702): LS crash in binder for module in a JS file (#52537) 2023-03-08 09:42:18 -08:00
Zzzen 0ce551752d check computed property names in overloads (#52427) 2023-03-08 09:20:33 -08:00
Mateusz Burzyński 6e4f0a430e Fix string completions depending on contextual signatures (#52717) 2023-03-07 16:42:16 -08:00
Mateusz Burzyński f555ad73db Fix property completion in unions of object types and string mappings (#52767) 2023-03-07 16:36:37 -08:00
jihndai 4af97b0572 Fix compound assignments for properties with different getter & setter types (#50431) 2023-03-07 16:02:16 -08:00
Nathan Shively-Sanders d747277edf Skip derived override assignment declarations (#52603) 2023-03-07 15:40:43 -08:00
Mateusz Burzyński 88adf8014b Make special intersections order-independent (#52782) 2023-03-07 15:39:14 -08:00
Mateusz Burzyński 2f229ab870 Add an extra test for contextually typed return of async function (#52613) 2023-03-07 15:30:40 -08:00
Jake Bailey a6be79d535 Remove old test262 and dt runner infra (#53125) 2023-03-07 11:59:47 -08:00
Oleksandr T 0e34f187c8 fix(52443): Regression: constructor accessor not allowed on plain objects (#52452) 2023-03-07 11:22:09 -08:00
Oleksandr T 02cf0b68b7 fix(52879): No autocompletions after the typeof keyword inside JSDoc comments. (#52973) 2023-03-07 10:52:23 -08:00
Jake Bailey 868331f2be Fix deprecations, improve messaging (#52993) 2023-03-07 09:39:45 -08:00
Vitaly b1f25a2bdb Move to New File: Respect Quote Style in import updates (#52974) 2023-03-07 09:23:02 -08:00
Mateusz Burzyński 6dbec02a88 Add extra test cases for the Awaited type (#53090) 2023-03-06 23:14:57 -08:00
Jake Bailey 6a39f912d6 Remove docker and user tests, related infra (#53118) 2023-03-06 19:59:21 -08:00
Oleksandr T 5240f060b8 feat(52569): fixUnusedIdentifier: Unwanted side-effects when removing an unused destructuring declaration containing a function call (#52951) 2023-03-06 15:41:13 -08:00
Mateusz Burzyński 7e4592ea09 Add an extra test case for deferred conditional types (#53067) 2023-03-06 13:46:11 -08:00
Mateusz Burzyński 61a8e2c5b7 Add a test for an error on required JSX children when an empty JSX expression is used (#53113) 2023-03-06 13:24:15 -08:00
Mateusz Burzyński 9c7f43dfd8 Add extra test cases for indexed access on generic mapped type (#53112) 2023-03-06 10:20:00 -08:00
Oleksandr T 3a6752ca14 feat(52883): Organize Imports doesn't treat exports the same way and merges groups (#52982) 2023-03-03 17:03:21 -08:00
Anders Hejlsberg 6823559fa9 Check for strict subtypes and then regular subtypes in getNarrowedType (#52984) 2023-03-03 15:56:17 -08:00
Oleksandr T a9ae9eeb23 fix(53074): Functions with async keyword don't autocomplete (#53079) 2023-03-03 10:31:01 -08:00
Mateusz Burzyński a34d5ae1ed Add extra test cases for Awaited<T> inference (#53068) 2023-03-03 09:47:14 -05:00
Mateusz Burzyński d5ccec377d Add tests for inferring contextual generic mapped types (#52709) 2023-03-02 16:29:16 -08:00
Mateusz Burzyński 6b71882c4c Fixed spreading iterables into arguments list directly into rest-only signatures (#52838) 2023-03-02 09:09:54 -08:00
Wesley Wigham 958487beda Mark indexed access object type comparisons as unreliable (#52106) 2023-03-01 13:07:44 -08:00
Oleksandr T 211a60dc79 fix(52444): "... is a type and must be imported using a type-only import ..." should have a quick fix (#52565) 2023-03-01 12:20:56 -08:00
Mateusz Burzyński fc756ebc17 Use missingType instead of undefinedType for optional methods under exactOptionalPropertyTypes (#52519) 2023-03-01 11:25:39 -08:00
Mateusz Burzyński 080f9c1c3f Fixed false positive errors in empty optional binding patterns in declaration signatures (#50816) 2023-03-01 10:58:37 -08:00
Sheetal Nandi 9c5b09cd21 Updates to type reference directive resolution and module resolution when failed (#51715) 2023-03-01 10:57:47 -08:00
Mateusz Burzyński 58ee54c2aa Resolve contextual computed properties with non-bindable names (#51915) 2023-03-01 10:12:18 -08:00
Ron Buckton 73a98aee00 Add tests for Awaited<null> and Awaited<undefined> (#52960) 2023-03-01 12:56:42 -05:00