Commit Graph
26796 Commits
Author SHA1 Message Date
Sheetal Nandi d839caea7f Update the unresolved import list only if it will be used 2025-05-16 14:35:35 -07:00
Sheetal Nandi e89404fa2f Close watchers for TI that are no longer needed 2025-05-16 14:31:50 -07:00
Sheetal Nandi 3ae4463ad2 When type acquisition is disabled, remove the typing files set as root
Also cache the inferred type acquition for inferred project
2025-05-16 14:31:29 -07:00
Sheetal Nandi cae589d277 Handle unnecessary typings request force just because root files change
First unresolved import gets the typing file into cache and sets it as root,
This results in scheduling new typing request with that unresolved import missing
The result will come back with typing file that is omitted, so root file will change but file will still be part of program so its not really removed from program
2025-05-16 14:30:54 -07:00
Sheetal Nandi 592bba486b Verify getUnresolvedImports incrementally 2025-05-16 14:30:37 -07:00
Sheetal Nandi d81f147bc7 Add test when type acquisition changes 2025-05-16 14:29:04 -07:00
Sheetal Nandi 31009c830f Write log about unresolved imports calculation 2025-05-16 14:28:42 -07:00
Andrew Branch 81c951894e Fix getResolvePackageJsonImports utility (#61707) 2025-05-15 17:49:35 -07:00
Mateusz Burzyński b86ab7dbe0 Stop reassigning .valueDeclaration to avoid replacing earlier declarations with late ones (#60857) 2025-05-15 09:51:34 -07:00
Mateusz Burzyński 0fb5e3a8cf Preserve type parameter constraint in emitted mapped types while preserving their distributivity (#54759) 2025-05-12 10:54:34 -07:00
Ulrich Stark 7156300cee Fix unwanted constant comparisons potentially causing bugs (#61655) 2025-05-09 15:20:44 -07:00
Gabriela Araujo Britto 0ee67b517f Add configurable maximum hover length (#61662) 2025-05-09 13:31:39 -07:00
Ron Buckton 8c62e08448 DOM Update 2025-05-02 (#61647) 2025-05-07 18:02:49 -04:00
Joseph MartinandNathan Shively-Sanders d88d3a4681 docs(lib): add @throws JSDoc for JSON methods (#61596)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2025-05-02 15:20:58 -07:00
ZzzenandNathan Shively-Sanders 5e36778330 check usage before declaration for decorators (#50372)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2025-05-02 14:01:09 -07:00
e37ca49c70 arguments should not be allowed in class static block (#48172)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-05-02 06:38:33 -07:00
Oleksandr T. 11e7932759 fix(61258): Renaming namespace with const enum doesn't update enum references (#61263) 2025-04-24 14:35:05 -07:00
Tom Mrazauskas 38b78b70d2 Add the .getNonPrimitiveType() method to the TypeChecker (#61562) 2025-04-24 14:08:52 -07:00
Hans Brende 75202af2cc Fix #61098 (#61113) 2025-04-24 13:55:56 -07:00
Sebastian "Sebbie" Silbermann 0a1aa6d6eb Deemphasize old JSX transform (#61586) 2025-04-17 11:02:55 -07:00
Andrew Branch 6afd0fb73f Fix crash when serializing default export in error (#61582) 2025-04-16 09:43:33 -07:00
Gabriela Araujo Britto 069de743db Expandable hover (#61492) 2025-04-15 12:14:38 -07:00
Mateusz Burzyński eef7c14ef1 Treat functions with @type tags on parameters as typed in JS files (#61177) 2025-04-14 15:35:20 -07:00
VitalyandNathan Shively-Sanders ba663f6ac2 Exclude completions of binding pattern variable initializers (#52723)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2025-04-02 13:47:43 -07:00
Mateusz Burzyński 89c572ca0c Fixed a symbol display crash on expando members write locations (#55478) 2025-04-01 13:40:59 -07:00
Fróði Karlsson 29e6d6689d Fix lib.includes('dom') check in containerSeemsToBeEmptyDomElement (#61481) 2025-03-25 16:24:52 -07:00
Daniel Rosenwasser 4dc677b292 Fix errors on type assertions in erasableSyntaxOnly (#61452) 2025-03-19 16:25:22 -07:00
Oleksandr T. ee3dd7264b fix(60908): Unexpected "'Type' is declared but its value is never read." error with jsdoc @import syntax (#60921) 2025-03-17 13:29:48 -07:00
Titian Cernicova-Dragomir a00b324ab2 Fix serialization of accessor types in declaration files. (#61392) 2025-03-14 12:36:08 -07:00
CSIGS@microsoft.com 1efdcd9ff7 LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250306202248269 to main (#61368) 2025-03-06 12:41:55 -08:00
Titian Cernicova-Dragomir c85e626d8e Rename type parameters when they are shadowed. (#61342) 2025-03-04 11:34:32 -08:00
Jake Bailey 15392346d0 Ban old-style type assertions under erasableSyntaxOnly (#61244) 2025-02-28 11:10:43 -08:00
CSIGS@microsoft.com 011f7e4ee5 LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250227204102665 to main (#61315) 2025-02-27 12:58:31 -08:00
René 6121f45347 lib.es2017: Move SharedArrayBuffer[Symbol.species] onto constructor interface (#61271) 2025-02-26 16:47:50 -05:00
Mateusz Burzyńskiandmichaelm b97eafbf3b Fixed accidentally reused comments between files in the emitter (#61261)
Co-authored-by: michaelm <michael.mitchell@airtable.com>
2025-02-26 12:48:59 -08:00
CSIGS@microsoft.com afc463980f LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250225202237529 to main (#61269) 2025-02-25 14:39:49 -08:00
Mateusz Burzyński 7507b055de Don't widen unique symbols annotated by effective type nodes in JS files (#61180) 2025-02-24 11:53:10 -08:00
Oleksandr T. 2c3be449ff fix(60887): Incorrect Formatting on if (a) try {} finally {} (#60898) 2025-02-24 11:51:28 -08:00
Kenta Moriuchi 8ae98d02d8 Fix to use string literal type in ArrayBuffer's Symbol.toStringTag (#60150) 2025-02-24 14:17:35 -05:00
Michal Maršálek 244303f92f make exported destructured discriminated union narrowing work (#59673) 2025-02-24 10:29:01 -08:00
Oleksandr T. 1cd8e20f94 fix(61167): Incorrect "Import may be converted to a default import" autofix for import export (#61171) 2025-02-21 15:23:22 -08:00
Chiri Vulpes 2bed7feee8 Account for right operands & fix a weird error message for leftmost nullish literals in checkNullishCoalesceOperands (#59569) 2025-02-21 14:17:08 -08:00
Mateusz Burzyński edc497bb2b Find method references through base abstract classes implementing an interface (#61234) 2025-02-21 11:08:34 -08:00
Mateusz Burzyński b95187d1ce Provide string completions for in keyword checks (#60272) 2025-02-20 14:01:52 -08:00
Mateusz Burzyński 0d016920e6 Infer from annotated return type nodes before assigning contextual parameter types (#60964) 2025-02-20 12:06:49 -08:00
Michal MaršálekandJake Bailey 12c232333b Fix of #58996 (#59155)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2025-02-20 11:41:31 -08:00
Mateusz Burzyński 5695986fbd Fixed JSDoc checking on enum members (#61184) 2025-02-20 10:48:33 -08:00
Michal Maršálek d8f6aa7c1f Remove redundant getStringLiteralType call (#59803) 2025-02-20 10:48:09 -08:00
Ben Lickly 3f416e0f52 Fix quick fix for isolatedDeclarations to keep trailing unknown in generics (#61227) 2025-02-19 17:28:50 -08:00
Mateusz Burzyński 71b16ea186 Treat contextually typed functions in JS files as typed (#56907) 2025-02-19 16:58:32 -08:00