13041 Commits

Author SHA1 Message Date
Copilot
486fce7a12
Fix unreachable code detection persisting after incremental edits (#62783)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
2025-11-19 09:46:30 -08:00
Jake Bailey
09e31cf04a
Move unreachable checks to checker (#62751) 2025-11-13 17:50:42 -08:00
Jake Bailey
ea48dedd7d
Shrink relationComplexityError test size (#62754) 2025-11-13 21:44:23 +00:00
Mateusz Burzyński
4a957b74ea
Fixed control flow Analysis of aliased discriminants with parenthesized initializers (#61788) 2025-11-11 11:41:36 -08:00
Nico Rainhart
48244d89f8
fix: [Symbol.iterator]() lost on union with never (#62661) 2025-11-10 15:11:13 -08:00
Anders Hejlsberg
cc05d940a2
Propagate variance reliability (#62604) 2025-10-31 11:51:01 -07:00
Mateusz Burzyński
b44ac69d5b
Keep returned (and yielded) literal types as const when their types using const type variables (#56859) 2025-10-30 11:59:09 -07:00
Mateusz Burzyński
f6f4eab587
Allow implicit undefined returns when the contextual union type contains it (#57912) 2025-10-30 11:56:21 -07:00
Mateusz Burzyński
2b2d6cebcb
Improve references search and quick info on properties with type errors within nullable contextual types (#61383) 2025-10-30 11:54:29 -07:00
Mateusz Burzyński
6fd2874d0d
Use comparability for discriminant properties when narrowing types for a default switch clause (#61211) 2025-10-30 14:20:13 +00:00
Mateusz Burzyński
2a90a739c1
Fixed an issue with "slow" sync iteration types spoiling cached value for async ones (#62676) 2025-10-29 15:56:21 -07:00
Mateusz Burzyński
11ee01b22d
Add missing whitespace after type parameter's modifiers in interactive inlay hints (#62246) 2025-10-29 09:24:57 -07:00
Andrew Branch
42f6576e83
Deprecate --module amd, umd, system, none; --moduleResolution classic; change defaults (#62669) 2025-10-24 14:57:57 -07:00
Andrew Branch
f450c1b80c
Deprecate esModuleInterop and allowSyntheticDefaultImports (default to true) (#62567) 2025-10-22 16:50:03 -07:00
Copilot
542b09547f
Fix TS2783 false positive for union types in object spread expressions (#62656)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com>
2025-10-22 16:44:10 -07:00
Mateusz Burzyński
cbc2059b53
Fixed a crash when parsing invalid decorator on await expression (#62659) 2025-10-22 12:03:09 -07:00
Andrew Branch
84f4856709
Fix fourslash tests (#62641) 2025-10-20 19:47:59 +00:00
Mateusz Burzyński
d8aafb3197
Handle more child types when generating navigation tree items for export default (#62620) 2025-10-17 09:44:34 -07:00
Mateusz Burzyński
d3be7e171b
Allow line break before import attributes with keyword (#62593) 2025-10-14 09:51:33 -07:00
Prathmesh Ravindra Salunkhe
0b6a241886
Fix: Make discriminant property selection order-independent in unions (#62512) (#62516) 2025-10-13 10:38:34 -07:00
Mateusz Burzyński
1112daead7
Add extra test for extending multiple bases with incompatible optional property under EOPT (#62574) 2025-10-09 17:34:21 +00:00
Jake Bailey
91b32ac281
Remove circularity, rootDir errors from node modules compiler tests (#62568) 2025-10-09 00:09:58 +00:00
Jake Bailey
968d5deb8b
Fix incorrect test options (#62515) 2025-10-01 00:17:28 +00:00
Hans Brende
31a0ead46d
Don't compare "missing" to undefined in compareProperties under exactOptionalPropertyTypes (#61683) 2025-09-30 13:15:38 -07:00
Matt Kantor
d4b15eb56d
Enhance type argument completions (#62170) 2025-09-30 13:00:20 -07:00
Anders Hejlsberg
97610a8a63
Port microsoft/typescript-go#1757 (#62501) 2025-09-29 14:42:29 -07:00
Jake Bailey
5f183ad73d
Revert PR 61928 (#62423) 2025-09-25 10:22:27 -07:00
Andrew Branch
6f6efb419a
Disable conditional exports fallbacks on null values (#62483) 2025-09-25 09:16:51 -07:00
Jake Bailey
96acaa5290
Remove no-default-lib (#62435) 2025-09-24 16:16:14 -07:00
Ryan Cavanaugh
904e7dd97d
Enable noUncheckedSideEffectImports by default (#62443) 2025-09-22 12:06:04 -07:00
Greggman
3320dfdfcf
Add missing Float16Array constructors (#62351) 2025-09-09 11:22:55 -07:00
Ryan Cavanaugh
3f5c77f1f9
Replace all testcase instances of 'module' with 'namespace' (#62399) 2025-09-08 16:07:45 -07:00
Andrew Branch
7956c00166
Deprecate --moduleResolution node10 (#62338) 2025-08-27 13:51:20 -07:00
Andrew Branch
e635bb97f5
Allow --module bundler --moduleResolution commonjs (#62320) 2025-08-22 14:17:18 -07:00
Copilot
39c5d01877
Fix private identifier fields generating errors in class expression declarations (#62155)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Co-authored-by: weswigham <2932786+weswigham@users.noreply.github.com>
Co-authored-by: Wesley Wigham <wewigham@microsoft.com>
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2025-07-31 15:51:51 -07:00
Mateusz Burzyński
d5a414cd1d
Don't use noErrorTruncation when printing types with maximumLength set (#62091) 2025-07-22 08:56:52 -07:00
Copilot
833a8d492c
Fix Symbol completion priority and cursor positioning (#61945)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2025-07-02 14:46:24 -07:00
Mateusz Burzyński
1ea1809e16
Properly disallow yield in bodyless arrows (#61976) 2025-06-30 14:52:49 -07:00
Mateusz Burzyński
91cdbd518c
Fixed nullish coalesce operator's precedence (#61372) 2025-06-30 13:49:03 -07:00
Mateusz Burzyński
58665cf3ae
Don't return tags when returning quick info for JSDoc nodes (#59816) 2025-06-30 13:20:08 -07:00
Mateusz Burzyński
c35b14335a
Keep accessors as accessors in emitted anonymous class declarations (#60853) 2025-06-30 13:19:53 -07:00
Mateusz Burzyński
3267e426e3
Handle silentNeverType in iteration-related functions (#61317) 2025-06-30 12:52:51 -07:00
Mateusz Burzyński
5519be3ae1
Fixed crash when getting a definition for a class member with a computed name and an override modifier (#60631) 2025-06-30 12:48:39 -07:00
Mateusz Burzyński
2ea2ecfdc1
Fixed crash in hasVisibleDeclarations related to binding elements (#61352) 2025-06-30 11:57:47 -07:00
Mateusz Burzyński
c33f83ac9b
Fixed a printer crash caused by empty parameter modifiers (#60537) 2025-06-30 11:14:10 -07:00
Mateusz Burzyński
b46556e7b7
Fixed JSDoc display on JsxNamespacedName attributes (#61825) 2025-06-30 11:07:48 -07:00
Mateusz Burzyński
8665f920c9
Fixed crash on ComputedPropertyName when computing interactive inlay hints (#61857) 2025-06-30 10:28:27 -07:00
Mateusz Burzyński
d297037a83
Fixed crash on ConstructSignature when computing interactive inlay hints (#61973) 2025-06-30 10:21:50 -07:00
Ryan Cavanaugh
efeb135c6f
Revert #54442 and add a testcase (#61955) 2025-06-27 08:52:58 -07:00
Gabriela Araujo Britto
02672d281c
Use jsx language variant for jsx file scanning in getChildren (#61928) 2025-06-25 15:37:21 -07:00