Commit Graph
17554 Commits
Author SHA1 Message Date
Wesley Wigham b682ed4504 Lock down computed names in object literals and classes under --isolatedDeclarations (#58596) 2024-05-22 12:28:07 -07:00
Matthieu Riegler 75342d8ca8 fix(58584): formatJSDocLink shouldn't introduce a trailing space when non link text. (#58585) 2024-05-21 14:53:52 -07:00
Sheetal Nandi cd40d26f01 Skip typechecking file when generating declaraiton to get d.ts signature for incremental build (#58592) 2024-05-21 14:09:44 -07:00
Sheetal Nandi 06841520db If module exports const enum, invalidate js files along with dts as it can impact js emit as well (#58594) 2024-05-21 13:57:57 -07:00
Wesley WighamandTypeScript Bot 6f72e24544 Fix elided var handling in declaration emit visibility checks (#58605)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-21 13:44:35 -07:00
Andrew Branch 84ab39d7f0 Respect importModuleSpecifierPreference in sort order between fixes for the same symbol from different files (#58597) 2024-05-21 08:36:53 -07:00
Sheetal Nandi d84431e706 Handle root files listed in project config from referenced project to be same as if they were included through import (#58560) 2024-05-20 10:05:42 -07:00
Wesley Wigham 79a851426c Attempt to reuse type parameter constraint nodes (#58539) 2024-05-16 14:51:09 -07:00
Isabel Duan 4da470da37 fix56509: return type if tryCreateAwaitedType fails (#58547) 2024-05-16 14:02:15 -07:00
Sheetal Nandi 84ed6a3d64 Make sure that jsdoc is always in range with parameter declaration (#58538) 2024-05-15 12:03:09 -07:00
Titian Cernicova-Dragomir 4ece0a381b Partially reuse type nodes (#58516) 2024-05-14 13:56:41 -07:00
Wesley Wigham 2d47953d9d Declaration emit should avoid issuing errors on unresolved names (#58536) 2024-05-14 12:49:05 -07:00
Sheetal Nandi ef01ea1ac6 Stop checking existing resolution now that we have concept of package ID (#58528) 2024-05-14 10:30:22 -07:00
Anders Hejlsberg d90e8e7eca Fix constant evaluation of template string expressions (#58500) 2024-05-14 09:44:05 -04:00
Sheetal Nandi e51cbc8764 Do not lowercase typeReference directive name (#58525) 2024-05-13 16:35:49 -07:00
Sheetal Nandi 524456ff5a Fix incorrect usage of getResolvedTypeReferenceDirectives and some refactoring (#58527) 2024-05-13 16:03:40 -07:00
Wesley Wigham 56cfd6c3a8 Preserve return type nodes which resolve to errors in declaration emit (#58522) 2024-05-13 11:55:01 -07:00
Wesley Wigham 8111503772 Update unicode identifier start/part with more recent unicode version (#58521) 2024-05-13 11:14:34 -07:00
Joost Koehoorn 0b37062eb0 Remove unused SymbolLinks properties (#58393) 2024-05-10 15:01:22 -07:00
Titian Cernicova-Dragomir 72c12c9920 Isolated declarations fix signature serialization scoping (#58409) 2024-05-10 14:09:25 -07:00
Wesley Wigham 9f9682c0a0 Move all js emit alias marking behavior behind a single entrypoint (#58366) 2024-05-09 17:03:11 -07:00
Wesley Wigham fece7f11c0 Preserve type nodes which resolve to errors in declaration emit output (#58475) 2024-05-08 13:29:51 -07:00
Andrew Branch bc14459f3b Refactor default export info name gathering (#58460) 2024-05-08 09:33:17 -07:00
Andrew BranchandSheetal Nandi 14b4529a69 Fix tslib resolutions (#58451)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2024-05-07 11:28:20 -07:00
Wesley WighamandTypeScript Bot 0d3c48109d Declaration emit should retain (instead of elide) unresolved computed names (#58428)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-07 05:42:13 -07:00
Jake Bailey 16beff101a Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Mateusz Burzyński 9598d35074 Avoid getting single call signatures when parameter types are the same (#58392) 2024-05-06 16:49:24 -07:00
Sheetal Nandi fd81d04080 Lazy calculation of expensive file explaining diagnsotics and some caching to be used to share the diagnostic data (#58398) 2024-05-06 16:30:17 -07:00
Ron Buckton 70d8ec2f26 Fix name generation scoping (#58418) 2024-05-06 11:59:37 -04:00
Wesley Wigham e154d47851 Type alias declarations should not return an effective annotation node (#58410) 2024-05-03 10:34:35 -07:00
Anders Hejlsberg 3a74ec4e99 Disable constraint reduction in intersections created by constraint hoisting (#58403) 2024-05-02 16:55:11 -07:00
Sheetal Nandi 7a38980a7e Validate the options passed in are numbers instead of strings for our custom commandline options (#58388) 2024-05-01 14:51:36 -07:00
Oleksandr T 66dd12e699 fix(58259): getTextOfJSDocComment is stripping # from JSDoc comment (#58338) 2024-05-01 11:47:26 -07:00
Mateusz Burzyński f01cae8893 Fixed an issue with missingType narrowing by case undefined in default cases (#58001) 2024-05-01 08:57:42 -07:00
Hana JooandAndrew Branch 33b156147b Add a code fixer for --isolatedDeclarations errors (#58260)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-04-30 15:25:51 -07:00
Anders Hejlsberg 749bd834be Cache discriminated contextual types (#58372) 2024-04-30 12:40:28 -07:00
Wesley Wigham 36146aa2ea Remove seemingly unused SymbolLink constEnumReferenced (#58377) 2024-04-30 11:35:09 -07:00
Anders Hejlsberg c763c277eb Fix ghost errors resulting from out-of-order type checking (#58337) 2024-04-29 14:27:18 -07:00
Ron BucktonandJake Bailey cd566bad95 RegExp syntax checking performance (#58339)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-29 15:12:36 -04:00
Gabriela Araujo Britto d2ad3ca035 Improve diagnostics deduplication 2 (#58318) 2024-04-29 10:24:22 -07:00
Gabriela Araujo Britto ebcb09d71a Improve diagnostics deduplication (#58220) 2024-04-26 15:44:09 -07:00
Sheetal Nandi 1db1376d8a Dont get declaration diagnostics for file from referenced project (#58333) 2024-04-26 14:05:12 -07:00
Wesley Wigham f76727d17a Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
Sheetal Nandi 95d23ca7d2 Treat the input file name from referenced project as "ts" rather than file extension it is when determining eliding file for program construction (#58308) 2024-04-26 13:15:02 -07:00
Sheetal Nandi c92bd16ac0 Exclude outDir and declarationDir even if they come from extended config (#58335) 2024-04-26 13:14:40 -07:00
Jake Bailey 04963ee796 Make diagnostics public on EmitOutput (#58317) 2024-04-25 18:05:49 -07:00
Jake Bailey 8d2e2d53c2 Move RegExp flag version mapping to LanguageFeatureMinimumTarget (#58311) 2024-04-25 15:22:21 -07:00
Daniel Rosenwasser ed87791dd9 Rephrase error messages on backrererences. (#58310) 2024-04-24 21:59:53 -07:00
Oleksandr T 501fa6e4e4 fix(58265): JSDoc comment string with the keyword "@private" before import statement in JS file result in cryptic error TS1191 during compilation (#58297) 2024-04-24 21:18:31 -07:00
Ron Buckton e28ad995d1 Report RegExp errors in grammar check, use Annex B grammar (#58295) 2024-04-24 19:16:05 -04:00