Commit Graph

12142 Commits

Author SHA1 Message Date
Mateusz Burzyński 074f20877d Fix JSX inference with excess properties (#53810) 2023-05-16 15:30:50 -07:00
Wesley Wigham b0c80207ac Add fallback logic for generating signatures for unions of array members (#53489) 2023-05-16 15:12:37 -07:00
Mateusz Burzyński d3513ee5c4 Improved go to type definition on type references of global container-like types using allowlist (#53729) 2023-05-15 13:40:18 -07:00
Mateusz Burzyński cb88998063 Evaluate simple template expressions (#53907) 2023-05-15 12:51:06 -07:00
Nathan Shively-Sanders 72037a9796 Skip resolving files directly inside node_modules (#52809) 2023-05-11 08:16:17 -07:00
navya9singh d7b8662f4d Fix for formatter crash for Move to file (#54199) 2023-05-09 14:01:59 -07:00
Mateusz Burzyński a4009a335a Add extra tests for contextual typing of unannotated parameters with default initializers (#53940) 2023-05-09 11:58:16 -07:00
Wesley Wigham 02bb3108ad JSX namespace names should not be considered expressions (#54104) 2023-05-09 10:45:58 -07:00
Jm 362703a213 Cover more cases for node module auto-import (#54024) 2023-05-09 09:46:55 -07:00
Oleksandr T 320e628a6d fix(53424): in code documentation is not working upon import if function expression reuse function type (#53964) 2023-05-08 16:55:04 -07:00
Mateusz Burzyński 6947c98929 Fixed issue with spreading a generic call expression into generic JSX and gather intra expression inference sites from spread expressions (#53444) 2023-05-08 13:53:15 -07:00
Maria José Solano 42d69cfa77 Handle undefined location.parent when getting completionEntryDetails (#54138) 2023-05-05 13:41:50 -07:00
Ryan Cavanaugh e9cbebbc89 Ignore self tail calls when collecting the return type of a function (#53995) 2023-05-05 10:16:11 -07:00
Jake Bailey c333e14578 Ensure that JSDoc parsing happens within a ParsingContext (#52710) 2023-05-04 09:55:34 -07:00
Nathan Shively-Sanders 840a0bfc08 Error on template tag inside callback/overload/typedef tag (#54118) 2023-05-04 09:51:43 -07:00
Ron Buckton f9a7cbfe7b Fix crash in getAwaitedType (#54107) 2023-05-03 15:40:51 -04:00
Steven ec1205cec1 Fix/issue 53286 (#53885) 2023-05-02 15:53:42 -07:00
Anders Hejlsberg 44f4e276b7 Constraints for generic tuple types (#53672) 2023-05-02 10:35:49 -07:00
Anders Hejlsberg 94564cf073 Type with diverging read/write normalizations still identical to itself (#54033) 2023-05-02 06:40:41 -07:00
Anders Hejlsberg ae6393e5eb Add fallback when both co- and contra-variant inference candidates exist (#54072) 2023-05-02 06:39:57 -07:00
Ron Buckton 611a912dd1 Fix class alias reference in static initializer for legacy class decorators (#54046) 2023-04-28 15:45:40 -04:00
Ron Buckton be27970251 Fix 'var' hoisting in 'if' in CJS/AMD emit (#54036) 2023-04-27 15:58:41 -04:00
Nathan Shively-Sanders 063276aac9 Bind JSDoc on SemicolonClassElement (#54044) 2023-04-27 11:47:16 -07:00
Oleksandr T 3c43b6b1be fix(53754): Re-exported symbol marked with deprecated doesn't get correct deprecation highlighting (#53808) 2023-04-27 09:45:10 -07:00
Nathan Shively-Sanders 1577535205 Fix callback return type annotation before constructor (#54034) 2023-04-26 13:46:55 -07:00
Mateusz Burzyński 2cbfb51ebb Fixed JSX attributes discriminating based on optional children (#53980) 2023-04-26 13:39:08 -07:00
Ron Buckton 5ad4ac8d11 Fix 'var' hoisting in 'if' in SystemJS emit (#54016) 2023-04-25 18:03:39 -04:00
Oleksandr T 546be4b360 fix(53735): Definition file generated from javascript is missing getter (#53768) 2023-04-25 14:42:15 -07:00
Wesley Wigham a177af1cc8 Instantiate generic ElementType declarations (#53943) 2023-04-24 13:25:39 -07:00
Andrew Branch 818c9806d4 Ensure paths-based resolution does not generate module specifiers with .. in the middle (#53957) 2023-04-21 15:04:16 -07:00
navya9singh d3bbef390d 'Move to file' refactor (#53542) 2023-04-21 11:48:53 -07:00
Maria José Solano e02ef9fddb Add quotes when renaming numerical indices (#53596) 2023-04-20 16:58:29 -07:00
Oleksandr T 58a5f4e228 fix(53722): Overloaded constructors: 'TValue' not assignable to 'string' (#53742) 2023-04-20 16:32:23 -07:00
Oleksandr T c74efad46e fix(53645): JSDoc extends doesn't work with multiple lines (#53705) 2023-04-20 16:06:38 -07:00
Isabel Duan c1693054fe added wordPattern Regex to include more characters (#53934) 2023-04-20 15:38:55 -07:00
Mateusz Burzyński 40787a7076 Improve contextual completions (#53554) 2023-04-20 09:22:14 -07:00
Oleksandr T c58231ea3b fix(53467): extends keyword not suggested inside of generic (#53646) 2023-04-19 10:59:07 -07:00
Sheetal Nandi bd4f40317c Library resolution should happen from config file directory if present just like auto type reference directive resolution (#53899) 2023-04-18 14:40:20 -07:00
Nicole 178198be04 Fix 53482 : Preserve newline/space behavior (#53732)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-04-18 09:57:52 -07:00
Mateusz Burzyński e4f8c378c0 Add tests for importing types from .d.ts with explicit extension (#53890) 2023-04-18 08:37:07 -07:00
Mateusz Burzyński b269087505 Fixed an issue with JSX children expression not being contextually discriminated (#53502) 2023-04-17 12:42:25 -07:00
Oleksandr T 020ce0c08c feat(7411): Add additional test cases (#53809) 2023-04-17 09:44:34 -07:00
Anders Hejlsberg e782cef221 Properly handle partial union type properties in isTypePresencePossible (#53794) 2023-04-16 17:24:10 -07:00
Oleksandr T 378ffa4bc9 feat(7411): Resolve intrinsics elements by JSX namespaced tag names (#53799) 2023-04-16 17:20:10 -07:00
Anders Hejlsberg f8b3ea7972 Propagate errorType in getConditionalType (#53801) 2023-04-16 16:15:55 -07:00
Vitaly c70fa514b0 Don't include completions for current and later parameters (#52690) 2023-04-14 17:05:55 -07:00
Oleksandr T 0c5be02dcc feat(7411): JSX namespaced attribute syntax not supported (#47356) 2023-04-14 16:58:49 -07:00
Anders Hejlsberg e49db97f97 Exclude parameters of non-inferrable signatures from inference (#53756) 2023-04-14 12:44:37 -07:00
Sebastian Silbermann b92483f20c RFC: Consult new JSX.ElementType for valid JSX element types (#51328)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-04-14 10:54:02 -07:00
Zzzen 458c5e6c64 fix(53138): go-to-definition not working on expression of SatisfiesExpression (#53164)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-04-13 15:29:18 -07:00