Commit Graph
16961 Commits
Author SHA1 Message Date
Oleksandr T 546be4b360 fix(53735): Definition file generated from javascript is missing getter (#53768) 2023-04-25 14:42:15 -07:00
Gerrit Birkeland a1df8f774f Expose getJSDocCommentsAndTags (#53627) 2023-04-24 15:36:41 -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
Ron Buckton 36b632552d Remove EndOfDeclarationMarker and MergeDeclarationMarker nodes (#53901) 2023-04-21 17:21:26 -04:00
navya9singh d3bbef390d 'Move to file' refactor (#53542) 2023-04-21 11:48:53 -07:00
Sheetal Nandi 30fb9fa57e Refactor plugin related code (#53942) 2023-04-20 16:49:47 -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
Sheetal Nandi ddd5084659 Add resolveLibrary method on hosts and store resolvedLibraries in program so that resolutions can be reused (#53877) 2023-04-20 13:50:22 -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
Sheetal Nandi ece33b7b59 Trace lib resolutions if resolving using options.traceResolution (#53898) 2023-04-18 10:56:57 -07:00
Sheetal Nandi b846033000 Instead of clearing out all resolutions and closing all the directory watchers, mark everything as invalidated when changes affect module resolution (#53882) 2023-04-18 10:21:17 -07:00
Mateusz Burzyński 8575886713 Remove duplicates from supportedTSExtensionsForExtractExtension (#53891) 2023-04-18 10:02:35 -07:00
NicoleandAndrew Branch 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
Oleksandr T 6f9a0622d1 feat(7411) - Replace helper to get namespaced name (#53876) 2023-04-17 12:47:29 -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
Sheetal Nandi 9919f6da1d Dont defer non relative type reference directive resolutions watching since we dont need to check ambient module presence to determine whether to watch them (#53875) 2023-04-17 12:37:51 -07:00
Sheetal Nandi 53d378720a When installing unrelated package inside scoped packages dont invalidate resolutions from everything in the scoped package (#53873) 2023-04-17 12:37:32 -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
Mateusz Burzyński 5897d7a135 Report assignability errors on the satisfies keyword (#53797) 2023-04-16 15:52:10 -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 SilbermannandDaniel Rosenwasser 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
Anders Hejlsberg b798e6bfa5 Optimize union type creation (#53771) 2023-04-14 09:34:12 -07:00
Sheetal Nandi df3bec6674 Tweak module resolution failed lookup watching (#53591) 2023-04-13 14:50:50 -07:00
Daniel Rosenwasser 1af17f8817 Fix transform flags for certain ES2020 features. (#52445) 2023-04-13 14:13:00 -07:00
Josh Goldberg ✨ 0023505dc7 Removed unnecessary use-before-define error for const enums (#53625) 2023-04-12 13:38:29 -07:00
Anders HejlsbergandMaria Solano bec204c844 Revise discriminateTypeByDiscriminableItems function (#53709)
Co-authored-by: Maria Solano <mariasolano@microsoft.com>
2023-04-12 07:25:58 -07:00
Gabriela Araujo Britto 2db688e36f Reset type resolution stack when starting to compute variance (#53549) 2023-04-11 14:05:31 -07:00
Nicolas Rodriguez 7b2b6a8cc2 fix(19577): fix regression with fully inferred types and non-null assertions (#50092) 2023-04-10 17:32:56 -07:00
Ron Buckton 3e76fb5ca2 Fix CJS local binding emit for ES decorators (#53725) 2023-04-10 17:05:38 -04:00
Tobias S 8369d41efe fix ordering of code fix import with triple-slash directives (#52484) 2023-04-10 10:45:57 -07:00
Ryan Cavanaugh c89f87f66a Detect malformed UTF-8 files and refuse to engage further (#53667) 2023-04-07 12:51:47 -07:00
Jake Bailey 7f6376794e Reuse operandType in checkPrefixUnaryExpression (#53682) 2023-04-06 13:37:12 -07:00
Andrew Branch 287ee41cf2 Fix two module specifier ending preference detection issues (#53691) 2023-04-06 13:06:58 -07:00
Andrew Branch f4be5b1321 Remove error on redundant isolatedModules/verbatimModuleSyntax combination (#53611) 2023-04-05 15:08:28 -07:00
Sheetal Nandi d07b1b93ab Fix incorrect setting of nonRecursive watch field (#53675) 2023-04-05 14:17:52 -07:00
Jake Bailey f243b987af Fix crash in parseJsxChild found by fuzzing (#53674) 2023-04-05 13:47:02 -07:00
Jake Bailey bebb6d0086 Disable JSX recovery hack when in unary expression context (#53666) 2023-04-05 13:04:37 -07:00
Jake Bailey a720ba921f Fix crash when private id in array assignment (#53665) 2023-04-05 13:04:13 -07:00
Gabriela Araujo Britto e83d61398e Provide snippet completions for @param in JSDoc (#53260) 2023-04-04 11:35:09 -07:00
Anders Hejlsberg 3f675b60bf More complete check in isConstTypeVariable (#53341) 2023-04-01 14:45:31 -07:00
Anders Hejlsberg b40385b595 Explicit undefined return type checked similar to explicit void return type (#53607) 2023-04-01 14:44:52 -07:00
Andrew Branch 9052ef895a Fix Go To Source Definition in --moduleResolution bundler (#53613) 2023-03-31 15:50:11 -07:00
Sheetal Nandi 2eab265a2b Baseline some watch related path determinations so its easy to track changes (#53598) 2023-03-31 15:13:06 -07:00
David Sherret 710e7d914d Remove non-ascii characters from internal code comments (#53608) 2023-03-31 10:57:57 -07:00
Andrew Branch b29ed18466 Ignore allowImportingTsExtensions in transpileModule to suppress option validation error with noEmit (#53599) 2023-03-31 09:10:49 -07:00