Commit Graph

36125 Commits

Author SHA1 Message Date
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
Jake Bailey
2070713f4b Ensure jsDocParsingMode is passed to LanguageService document registry (#58404) 2024-05-06 16:08:54 -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
Jake Bailey
62c41f8db4 Update baselines after PR 58001 (#58386) 2024-05-01 09:41:05 -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 Joo
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
Oleksandr T
dc316afea4 fix(58360): Cheese being inserted on TypeScript Quick Fix (#58365) 2024-04-29 15:29:46 -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 Buckton
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
Anders Hejlsberg
dbd7d0b4d4 Accept new baselines 2024-04-29 06:43:46 -07:00
dependabot[bot]
3358157469 Bump the github-actions group across 1 directory with 3 updates (#58350)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-28 18:49:57 -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
Anders Hejlsberg
5afbd2cb76 Remove test 2024-04-26 09:49:52 -07:00
Jake Bailey
04963ee796 Make diagnostics public on EmitOutput (#58317) 2024-04-25 18:05:49 -07:00
navya9singh
ce4862c267 Updating move to file (#58257) 2024-04-25 15:32:18 -07:00
Jake Bailey
8d2e2d53c2 Move RegExp flag version mapping to LanguageFeatureMinimumTarget (#58311) 2024-04-25 15:22:21 -07:00
Anders Hejlsberg
3ee4e91231 Add more tests 2024-04-25 12:24:34 -07:00
Anders Hejlsberg
474a34b86c Exclude methods from strict checking 2024-04-25 12:24:24 -07:00
Anders Hejlsberg
d616ca02c6 Fix comment 2024-04-25 06:38:19 -07:00
Jake Bailey
9504b7576a Test Node 22 (#58309) 2024-04-24 22:11:57 -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
Anders Hejlsberg
f9a132beb1 Fix formatting 2024-04-24 14:27:24 -07:00
Anders Hejlsberg
4d168134d0 Accept new API baselines 2024-04-24 14:12:23 -07:00
Anders Hejlsberg
6fafe58b46 Compile APILibCheck.ts with --enforceReadonly 2024-04-24 14:08:48 -07:00
Anders Hejlsberg
638e55c665 Add more tests 2024-04-24 13:48:58 -07:00
Anders Hejlsberg
dd6c3a8909 Enforce read-only semantics in generic mapped types 2024-04-24 13:48:47 -07:00
Wesley Wigham
e6ba82b346 Error on references to literal enum members in conditions (#58264) 2024-04-24 10:32:53 -07:00
Armando Aguirre
5b69fdf541 Clone questionMark and dotdotdot token (#58263)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-04-24 10:20:59 -07:00
Jake Bailey
49762119f3 Disable no-inferrable-types eslint rule (#58306) 2024-04-24 09:57:17 -07:00
Wesley Wigham
0b71b81d7d Add transpileDeclaration API method (#58261) 2024-04-23 17:09:47 -07:00
Anders Hejlsberg
d7c8851c29 Remove unused file 2024-04-23 13:15:53 -07:00
Anders Hejlsberg
88c2579585 Merge branch 'main' into enforceReadonly
# Conflicts:
#	src/compiler/diagnosticMessages.json
#	tests/baselines/reference/es2018IntlAPIs.types
#	tests/baselines/reference/es2020IntlAPIs.types
#	tests/baselines/reference/inferenceOptionalPropertiesToIndexSignatures.types
#	tests/baselines/reference/instantiationExpressions.types
#	tests/baselines/reference/localesObjectArgument.types
#	tests/baselines/reference/mappedTypeConstraints2.types
#	tests/baselines/reference/mappedTypeRecursiveInference.types
#	tests/baselines/reference/unionTypeInference.types
#	tests/baselines/reference/useObjectValuesAndEntries1.types
#	tests/baselines/reference/useObjectValuesAndEntries4.types
2024-04-23 12:04:20 -07:00
Anders Hejlsberg
8c1ac6483e Add tests 2024-04-23 07:30:06 -07:00
Anders Hejlsberg
800c901305 More baseline changes 2024-04-23 07:29:54 -07:00
Anders Hejlsberg
97adafcddb Accept new API baselines 2024-04-23 07:28:56 -07:00
Anders Hejlsberg
170bb5fa2c Change option name to --enforceReadonly 2024-04-23 07:28:13 -07:00