26917 Commits

Author SHA1 Message Date
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
Ryan Cavanaugh
16b933fb7b
Deprecate module syntax (#62876) 2025-12-12 00:21:01 +00:00
Jake Bailey
c84cb94778
Revert "ES2020: fix String.prototype.matchAll type and description" (#62885) 2025-12-11 22:21:52 +00:00
Jordan Harband
bbb5322c96
ES2020: fix String.prototype.matchAll type and description (#62873) 2025-12-11 19:36:19 +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
Lars Kappert
ab142be459
Move knip args (#62865) 2025-12-09 04:33:55 +00:00
Jake Bailey
3544dd7d4d
Fix ContextFlags compile error (#62855) 2025-12-08 19:36:00 +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
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
Jake Bailey
b33d37201e
Don't set parent on non-transient symbols in mergeSymbolTable (#61560) 2025-12-04 09:47:25 -08:00
CSIGS@microsoft.com
dba6c9b824
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251203202848732 to main (#62832) 2025-12-04 09:30:04 -08:00
Mateusz Burzyński
28fbc0a1ef
Filter return type inferences by constraint applicability (#58910) 2025-12-03 09:46:59 -08:00
Sheetal Nandi
669c25c091
Add --ignoreConfig and dont allow specifying files on commandline without it if there is config file present (#62477) 2025-11-24 11:50:49 -08:00
CSIGS@microsoft.com
fbb051f500
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251121203231458 to main (#62791) 2025-11-21 16:30:42 -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
Kevin Gibbons
cc2610fd34
Update error for allowImportingTsExtensions to mention rewriteRelativeImportExtensions (#62557) 2025-11-14 09:04:38 -08:00
Jake Bailey
09e31cf04a
Move unreachable checks to checker (#62751) 2025-11-13 17:50:42 -08: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
CSIGS@microsoft.com
1654ebfb54
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251031193321730 to main (#62702) 2025-10-31 15:39:17 -07:00
Anders Hejlsberg
cc05d940a2
Propagate variance reliability (#62604) 2025-10-31 11:51:01 -07:00
CSIGS@microsoft.com
ac7825c484
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251030193607558 to main (#62695) 2025-10-30 16:50:02 -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
Kevin Brey
af3a3779de
add allowJs default value description (#62611) 2025-10-20 15:43:26 -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
CSIGS@microsoft.com
10b2cf52c3
LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20251001192403117 to main (#62521) 2025-10-09 12:50:23 -07:00
Mateusz Burzyński
6ba7d3560f
Consistently resolve to the errorType on arguments with error (#62549) 2025-10-05 15:40:28 -07:00
Jake Bailey
d0d675a363
Update DOM types for FileSystemDirectoryHandle changes (#62538) 2025-10-03 16:36:42 -07:00
dontwanttothink
3a68348fcb
Add type definitions for Uint8Array to/from base64 methods (#61696) 2025-10-03 14:01:57 -07:00
Jake Bailey
ced90d94b5
Move Iterable/AsyncIterable into main DOM/WebWorker libs (#62111) 2025-10-02 15:52:50 -07:00
Jake Bailey
9c4c377044
Update DOM types (#62496) 2025-10-02 10:42:42 -07:00
Andrew Branch
eef6a0cbcf
Deprecate baseUrl (#62509) 2025-09-30 14:03:17 -07:00
Hans Brende
31a0ead46d
Don't compare "missing" to undefined in compareProperties under exactOptionalPropertyTypes (#61683) 2025-09-30 13:15:38 -07:00