11977 Commits
Author SHA1 Message Date
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
brendaHuangandBrenda Huang 1b692dec96 convert JSDoc typedef to type, issue 50644 (#51430)
Co-authored-by: Brenda Huang <brehuang@linkedin.com>
2023-03-01 09:43:08 -08:00
Mateusz Burzyński 02885b1a2e Fixed an issue with top function type being callable with no arguments (#52387) 2023-03-01 09:35:36 -08:00
Mateusz Burzyński c6b384ce5c Add an extra test case for an aliased mapped type inference (#52742) 2023-02-28 16:07:47 -08:00
形素叢集・ぐらふぃーむandNathan Shively-Sanders 57394450db lib Fix Part 1/6 – WeakMap constructor (#50449)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-02-28 14:14:30 -08:00
Vitaly 0e357f510b Exclude literal completions after closing quote and JSX attribute location (#52676) 2023-02-28 13:31:30 -08:00
Andrew Branch e9868e96e8 --moduleResolution bundler: Require ESM for module and remove node from hard-coded conditions (#52940) 2023-02-24 15:49:08 -08:00
Mateusz Burzyński 1a76569a78 Retry querying string completions from the inferred type if the original completions request doesn't return anything (#52875) 2023-02-23 12:13:30 -08:00
Ron Buckton 8becdf2b40 Fix emit for nested object rest in assignment pattern (#52922) 2023-02-22 20:41:09 -05:00
Jake Bailey ef79b42b57 Don't emit binding pattern pattern / optional parameter error when an initializer is present (#52880) 2023-02-21 18:05:02 -08:00
Jake Bailey 3471bd7d86 Fix type import node circularity errors in eager diagnostic mode, deprecations (#52861) 2023-02-21 15:42:15 -08:00
Jake Bailey b579516b9e Handle multiple levels of substitutions and indexed accesses in getActualTypeVariable (#52848) 2023-02-21 11:08:51 -08:00
Mateusz Burzyński 38b951e166 Fixed crash in switch completions related to parenthesized expressions (#52881) 2023-02-21 10:41:16 -08:00
Oleksandr T e1ae30e1ab fix(52852): "Move to a new file" refactoring does not maintain "import type" semantics (#52854) 2023-02-21 10:02:00 -08:00
Anders Hejlsberg 5c92af1dcc Fix contextual typing for post-spread tuple elements (#52769) 2023-02-18 07:35:24 -10:00
Oleksandr T bbb98cf797 fix(52664): Assertion failure on completions for derived class with computed base property name (#52673) 2023-02-17 17:36:52 -08:00
Jake Bailey 8cc216af03 Ensure parameters are in scope when converting parameter/return types to type nodes (#49627) 2023-02-17 16:46:03 -08:00
Oleksandr T 088fdf6efe fix(51202): Circular instantiation expression crashing IDEs (#51214) 2023-02-17 11:31:45 -08:00
Jake Bailey a3a4993937 Don't parse out a name for JSX fragments (#52818) 2023-02-17 10:55:56 -08:00
Mateusz Burzyński a3b516f6ab Add an extra test case for inferring return type of generic class without a constructor (#52741) 2023-02-16 18:56:42 -08:00
Ron Buckton fd0370822f Fix crash in 'Wrap in JSX Fragment' quick fix (#52816) 2023-02-16 21:34:58 -05:00
Mateusz Burzyński 879dbcd2df Do not report errors when inference is partially blocked (#52728) 2023-02-16 15:17:07 -08:00
Nathan Shively-Sanders 4b534dc859 Check overload tag against implementation (#52474) 2023-02-16 14:40:40 -08:00
Mateusz Burzyński 2976b6b703 Filtering mapped types declarations (#51650) 2023-02-16 13:38:10 -08:00
Ron Buckton 55eff14353 Fix crash in extract type and generate get/set refactors (#52803) 2023-02-16 16:15:54 -05:00
Ron Buckton 7dd2a5e905 Fix crash in private accessor emit (#52785) 2023-02-16 14:38:18 -05:00
Vitaly 151364902b Don't add redundant await in completions (#52677) 2023-02-16 08:44:14 -08:00
Jake Bailey d79eb02de3 Prefer using enum literal's own base type rather than enum's base type in comparison (#52703) 2023-02-16 07:44:06 -08:00
Oleksandr T 733d7aed97 fix(52749): Assertion failure in derived class completion (#52787) 2023-02-15 14:33:39 -08:00
Ron Buckton 2c67c8f756 Enforce NLT restriction after 'accessor' keyword (#52763) 2023-02-15 12:51:25 -05:00
Anders Hejlsberg 7d00bb078d Widening and non-widening computed enum types (#52542) 2023-02-14 16:25:46 -08:00
Oleksandr T de2ab4ab8f fix(52761): overload tag is not supported in completions (#52762) 2023-02-14 14:25:00 -08:00
Anders Hejlsberg 84b8483206 Improvements to strictSubtypeRelation and getNarrowedType (#52282) 2023-02-14 12:12:42 -08:00
Oleksandr T a8b4a3b637 fix(52061): Constructor parameters exported as type included in emitted metadata (#52138) 2023-02-14 12:03:54 -08:00
Tobias S df6b9e5754 fix property completion in unions of object types and template literal types (#52196) 2023-02-14 10:50:53 -08:00
Andrew Branch 48e812aa07 Prefer top-level type-only imports in verbatimModuleSyntax (#52747) 2023-02-14 10:23:08 -08:00
Mateusz Burzyński ab40f5e5d0 Avoid caching resolved signatures for language service requests like signature help (#52679) 2023-02-14 09:47:32 -08:00
Ron Buckton f23dd7a7b2 Fix crash in getAwaitedType (#52752) 2023-02-14 11:16:12 -05:00
Anders Hejlsberg 72fb827045 Check conditional types in depth in isTypeParameterAtTopLevel (#52648) 2023-02-14 07:33:22 -08:00
Andrew Branch 99927cad95 Replace all instances of compilerOptions.isolatedModules with function considering verbatimModuleSyntax (#52746) 2023-02-13 16:03:02 -08:00