copilot-swe-agent[bot]
387b02acf5
Fix all tests with unintentional error changes
...
Added explicit types arrays to tests that had NEW errors after the default change:
- tsc/incremental: react-jsx tests now have types: ["react"]
- tsbuild/moduleResolution: type-reference-resolution test now has types: ["sometype"]
- tscWatch/resolutionCache: tests now have types: ["node"]
- tsserver tests: added types for node, lib1, lib2, typings
- compiler tests: jsDeclarationsTypeReferences and typeReferenceDirectives tests now have explicit @types directives
All tests now pass with only expected errors (no unintentional changes).
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2026-01-22 23:11:56 +00:00
copilot-swe-agent[bot]
83af77128d
Fix tests with new errors from types default change
...
Added explicit types arrays to tests that now have new errors:
- moduleResolution_automaticTypeDirectiveNames: types: ["a"]
- referenceTypesPreferedToPathIfPossible: types: ["node"]
- typeRootsFromMultipleNodeModulesDirectories: types: ["dopey", "grumpy", "sneezy"]
- typeRootsFromNodeModulesInParentDirectory: types: ["foo"]
- typingsLookup3: types: ["jquery"]
These tests relied on automatic @types inclusion and now require explicit configuration.
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2026-01-22 18:03:55 +00:00
copilot-swe-agent[bot]
95e2cd01ee
Improve wildcard handling to support mixed types arrays
...
- Enhanced wildcard logic to support mixing "*" with explicit types
- Added test for wildcard combined with explicit types
- This supports gradual migration pattern: types: ["*", "node", "jest"]
- All 99,255 tests passing
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2026-01-22 00:02:25 +00:00
copilot-swe-agent[bot]
30400496e2
Fix tests affected by types default change
...
Updated tests to explicitly specify types they depend on:
- Added "types": ["node"] to tests requiring @types/node
- Added "types": ["react"] to tests requiring @types/react
- Added "types": ["classnames"] to UMD module tests
- Added "types": ["*"] to external project test to maintain old behavior
- Fixed autoImportPackageJsonFilterExistingImport3 test structure
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2026-01-21 23:41:29 +00:00
copilot-swe-agent[bot]
2b70067c56
Implement default types=[] and wildcard support
...
- Modified getAutomaticTypeDirectiveNames to return empty array when types is undefined
- Added support for "*" wildcard value to opt into old "include all" behavior
- Created comprehensive test cases for new functionality
Co-authored-by: RyanCavanaugh <6685088+RyanCavanaugh@users.noreply.github.com>
2026-01-21 23:18:01 +00:00
Daniel Rosenwasser
c3dc61d18a
Turn // @strict off in all failing fourslash tests which do not contain baseline calls ( #63023 )
2026-01-21 17:29:18 +00:00
Daniel Rosenwasser
e6fac66a72
Explicitly set strict: false for project tests, eval tests, and more programmatic fourslash tests ( #63024 )
2026-01-21 02:26:40 +00:00
Daniel Rosenwasser
58ed4bcfe4
More test suite strictness fixups ( #63022 )
2026-01-21 00:19:04 +00:00
Daniel Rosenwasser
7f6a84673d
Prepare tests for --noImplicitAny ( #62989 )
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-16 19:09:29 +00:00
Mateusz Burzyński
a586c340a2
Fixed crash related to index type deferral on generic mapped types with name types ( #60528 )
...
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2026-01-15 21:20:56 +00:00
Daniel Rosenwasser
64d1978944
More strictness prep ( #62984 )
2026-01-14 00:19:55 +00:00
Ryan Cavanaugh
631affd1d7
Deprecate --outFile ( #62981 )
2026-01-13 20:40:31 +00:00
Mateusz Burzyński
7bb5ba3de6
Discard types that reduce to never before discriminating by discriminable items ( #62275 )
2026-01-13 17:13:48 +00:00
Daniel Rosenwasser
f5ccf4345d
Test updates for strict initialization ( #62958 )
2026-01-09 23:47:35 +00:00
Copilot
c574e4090d
Fix "never nullish" diagnostic missing expressions wrapped in parentheses ( #62789 )
...
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Ryan Cavanaugh <ryanca@microsoft.com>
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2026-01-09 18:57:02 +00:00
Mateusz Burzyński
632479f28d
Fixed an issue causing spurious "used before being assigned" errors in for of/in loops ( #61376 )
...
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2026-01-09 00:27:42 +00:00
Anders Hejlsberg
f3770c9b89
Fix crash in abstract property checking ( #62923 )
2025-12-28 21:12:38 +00:00
Anders Hejlsberg
1f5f9f34d3
Fix crash in mixin checking ( #62928 )
2025-12-26 23:15:54 +00:00
Mateusz Burzyński
2dfdbbabae
Fixed crash when adding unreachable code diagnostic in situations with missing nodes ( #62914 )
2025-12-19 13:18:44 +00:00
Jake Bailey
d7ae3aa940
Fix accidental module replacements in tests ( #62890 )
2025-12-12 16:33:41 +00:00
Ryan Cavanaugh
16b933fb7b
Deprecate module syntax ( #62876 )
2025-12-12 00:21:01 +00:00
Mateusz Burzyński
366da34ae6
Improve inference by not considering thisless functions to be context-sensitive ( #62243 )
2025-12-10 19:08:29 +00:00
magic-akari
3b9acae97c
Allow subpath imports that start with #/ ( #62844 )
2025-12-09 18:54:52 +00:00
Mateusz Burzyński
69a0879743
Include source node inferences in string literal completions deeper in arguments ( #56182 )
2025-12-08 10:30:33 -08:00
Mateusz Burzyński
b2327c0f19
Make go to definition go to the constraint's properties for object literals in argument positions ( #62361 )
2025-12-08 10:27:56 -08:00
Mateusz Burzyński
dafed7f25b
Add tests for contextual param type assignment in nested return type inference scenarios ( #62189 )
2025-12-08 18:01:10 +00:00
Mateusz Burzyński
38d95c8001
Avoid silentNeverType leaking into generator types inferred based on inner generic calls at yields ( #62283 )
2025-12-05 10:47:37 -08:00
Mateusz Burzyński
0752278137
Widen reverse mapped type properties to fix them being treated as EPC-valid sources ( #62722 )
2025-12-05 10:45:33 -08:00
Mateusz Burzyński
28fbc0a1ef
Filter return type inferences by constraint applicability ( #58910 )
2025-12-03 09:46:59 -08:00
René
60e99ecee4
Disallow [await] using statements under case/default clauses ( #62709 )
2025-11-19 14:08:45 -08:00
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