Commit Graph

  • efeb135c6f Revert #54442 and add a testcase (#61955) Ryan Cavanaugh 2025-06-27 08:52:58 -07:00
  • 7fb8cdc56e Fix lint error in checker.ts parameter comment copilot-swe-agent[bot] 2025-06-26 04:58:10 +00:00
  • 56ded7a7a7 Merge branch 'main' into copilot/fix-61944 Ryan Cavanaugh 2025-06-25 21:22:28 -07:00
  • 02672d281c Use jsx language variant for jsx file scanning in getChildren (#61928) Gabriela Araujo Britto 2025-06-25 15:37:21 -07:00
  • 8a4d55687d Run format tool to fix line endings copilot-swe-agent[bot] 2025-06-25 21:48:29 +00:00
  • fbeac5714b Merge branch 'main' into copilot/fix-61944 Ryan Cavanaugh 2025-06-25 14:45:37 -07:00
  • f3a6d3165f Update copilot-setup-steps.yml (#61948) Jake Bailey 2025-06-25 14:35:09 -07:00
  • 6e519c59c1 Fix BigInt literal error in ambient contexts when targeting < ES2020 (#61935) Copilot 2025-06-25 14:29:50 -07:00
  • 1ed8674bba Allow accessor properties in ambient contexts when targeting ES5 (#61927) Copilot 2025-06-25 14:29:02 -07:00
  • a20ae113ae Merge branch 'main' into copilot/fix-61944 Ryan Cavanaugh 2025-06-25 14:26:23 -07:00
  • 88c9bfa639 Fix trailing whitespace in esnext.ts copilot-swe-agent[bot] 2025-06-25 21:10:16 +00:00
  • 957cf79304 Fix empty statement handling in using declaration for-of loops copilot-swe-agent[bot] 2025-06-25 21:09:09 +00:00
  • 0b3bf33a8e Fix empty block generation in using declaration for-of loops and remove obsolete comment copilot-swe-agent[bot] 2025-06-25 20:46:24 +00:00
  • 8f3df02544 Implement block scoping approach for using declaration shadowing in for-of loops copilot-swe-agent[bot] 2025-06-25 19:31:16 +00:00
  • bef82cbfc4 Address code review feedback - revert declarations.ts changes and clean up test copilot-swe-agent[bot] 2025-06-25 19:22:10 +00:00
  • 64358a26e1 Fix test to properly check declaration output and remove invalid .d.ts file copilot-swe-agent[bot] 2025-06-25 18:05:45 +00:00
  • d6c3ac3684 Add line endings and printf debugging section (#61947) Ryan Cavanaugh 2025-06-25 10:31:27 -07:00
  • 5971e08b33 Fix enum namespace constants declaration generation copilot-swe-agent[bot] 2025-06-25 16:06:40 +00:00
  • e47e4b8f78 Investigate enum namespace declaration issue in declarations transformer copilot-swe-agent[bot] 2025-06-25 15:56:10 +00:00
  • 67ff5e337a Initial plan copilot-swe-agent[bot] 2025-06-25 15:38:31 +00:00
  • e6a50a7861 Use strict subtype relation in getCommonSupertype (#61903) Anders Hejlsberg 2025-06-24 15:38:59 -07:00
  • add6971195 Fix more differences Jake Bailey 2025-06-24 15:25:01 -07:00
  • e1df139180 Port other missing TypeFlags changes Jake Bailey 2025-06-24 15:08:41 -07:00
  • e4e9fe741f Fix bad JSON syntax in tests, use JSON.parse first for perf (#61901) Jake Bailey 2025-06-24 14:51:46 -07:00
  • dca71700ba Fix bad JSON syntax in tests, use JSON.parse first for perf (#61901) Jake Bailey 2025-06-24 14:51:46 -07:00
  • d4a3126838 Port tsgo PR 1284 Jake Bailey 2025-06-24 14:46:40 -07:00
  • 47ca599979 Remove corsa-specific steps from copilot-setup-steps.yml (#61938) Ryan Cavanaugh 2025-06-24 11:35:21 -07:00
  • 6dea899f2b Update Copilot instructions and setup script (#61937) Ryan Cavanaugh 2025-06-24 10:44:30 -07:00
  • 2738f69f57 Add importHelpers directive and fix line endings copilot-swe-agent[bot] 2025-06-24 17:25:02 +00:00
  • 6fead4671c Add test baselines for using declaration shadowing fix copilot-swe-agent[bot] 2025-06-24 17:05:51 +00:00
  • 237579e33f Implement variable renaming for using declaration shadowing in for-of loops copilot-swe-agent[bot] 2025-06-24 16:54:57 +00:00
  • 3af37ef921 Add Copilot setup steps (#61933) Ryan Cavanaugh 2025-06-24 09:53:31 -07:00
  • 50b93bc803 Allow trailing commas after import attributes in ImportType (#61920) Mateusz Burzyński 2025-06-24 18:49:37 +02:00
  • 34e17b3bb8 Initial plan for issue copilot-swe-agent[bot] 2025-06-24 16:43:32 +00:00
  • 78c16795cd Don't ignore completions at source file locations (#61909) Mateusz Burzyński 2025-06-23 22:20:43 +02:00
  • 77331a9826 Accept new baselines improve-return-context Anders Hejlsberg 2025-06-22 16:57:20 -04:00
  • 9c92160940 Accept new baselines Anders Hejlsberg 2025-06-22 16:08:14 -04:00
  • 1b13408834 Improve contextual types inferred from return types Anders Hejlsberg 2025-06-22 16:08:02 -04:00
  • 6758cd9f01 Update TypeFlags order per tsgo PR 1226 Jake Bailey 2025-06-18 21:44:01 -07:00
  • 479285d0ac Create fourslash syntax, compiler testcase, and build instructions summary (#61900) Copilot 2025-06-18 14:43:15 -07:00
  • 5a3271b9ba LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250618192323088 to main (#61898) CSIGS@microsoft.com 2025-06-18 13:01:28 -07:00
  • c356203d2b Remove ES5 specific identifier handling Jake Bailey 2025-06-11 23:36:24 -07:00
  • 7eb74fd868 Remove ES5 transforms Jake Bailey 2025-06-11 17:03:43 -07:00
  • 8a396725dd Port "Improve type discrimination algorithm" from tsgo (#61828) Jake Bailey 2025-06-09 16:20:15 -07:00
  • 8dddd1a07d Remove LKG Jake Bailey 2025-06-18 08:15:49 -07:00
  • f1d2494e91 LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250617192341571 to main (#61887) CSIGS@microsoft.com 2025-06-17 13:28:42 -07:00
  • 3eb3e21021 Baseline diffs from the change Sheetal Nandi 2025-06-17 10:08:57 -07:00
  • ebbd5c3d23 Update baselines cherry-pick/61861/release-5.8 TypeScript Bot 2025-06-13 22:36:02 +00:00
  • f916792fe8 Merge 29e5a304b4 into dd1e258ba5 Sheetal Nandi 2025-06-13 13:55:12 -07:00
  • 1cfd944a3a Fourslash-server baselines Sheetal Nandi 2025-06-13 15:22:31 -07:00
  • 29e5a304b4 Watch failed lookups, affecting locations only if reoslution failed Sheetal Nandi 2025-06-13 11:12:58 -07:00
  • dd1e258ba5 LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250611192551558 to main (#61846) CSIGS@microsoft.com 2025-06-11 13:57:43 -07:00
  • 529ed0968b fix link to "Help Wanted" issues (#61843) Allen Hernandez 2025-06-11 11:58:23 -04:00
  • 12e09f44f6 Port "Improve type discrimination algorithm" from tsgo (#61828) Jake Bailey 2025-06-09 16:20:15 -07:00
  • 0dfd0c2143 Restore import defer = parsing (#61837) Nicolò Ribaudo 2025-06-09 23:31:15 +02:00
  • 34d1ea68f6 Fix type variable leaks and cache inconsistencies (#61668) Anders Hejlsberg 2025-06-09 14:20:27 -07:00
  • cb38d99d08 Add --module node20 (#61805) Andrew Branch 2025-06-09 14:20:00 -07:00
  • 97cfa26f2a optimization, reduce memory usage (#61822) VincentBailly 2025-06-09 20:48:30 +02:00
  • 355b9e0984 Avoid resolving source prop type when the target is unknown/any (#61660) Mateusz Burzyński 2025-06-07 00:17:50 +02:00
  • 7715955f89 Fix helpers emit for .cjs files in ESM module mode (#61814) Andrew Branch 2025-06-06 15:08:04 -07:00
  • fa2a0fc5a2 Issue "'{0}' declarations can only be declared inside a block." for block-scoped variables in presence of parse errors (#61824) Mateusz Burzyński 2025-06-06 23:00:25 +02:00
  • 1e2494566e explicitly disallow using in ambient contexts (#61781) René 2025-06-06 21:44:02 +01:00
  • 652ed7fea0 Add lib.esnext.sharedmemory (#61646) René 2025-06-06 21:33:13 +01:00
  • 51dcd9001d Cache mapper instantiations (#61505) Mateusz Burzyński 2025-06-06 21:21:17 +02:00
  • ffd98c1773 feat: add Error.isError() to ESNext lib (#60788) Dirk Luijk 2025-06-06 21:16:35 +02:00
  • a69c6d0bb7 Add support for import defer proposal (#60757) Nicolò Ribaudo 2025-06-06 21:11:21 +02:00
  • cd341998a9 tsc --init update (#61813) Ryan Cavanaugh 2025-06-06 12:03:28 -07:00
  • ac03ba4f02 fix(checker): report error when using bigint as enum key (#61777) magic-akari 2025-06-06 07:37:47 +08:00
  • a591ca3fdc fix(61747): for (using of = is incorrectly parsed (#61764) Oleksandr T. 2025-06-06 02:37:40 +03:00
  • 2b88aebaaa LEGO: Pull request from lego/hb_5378966c-b857-470a-8675-daebef4a6da1_20250604192236101 to main (#61815) CSIGS@microsoft.com 2025-06-04 12:51:27 -07:00
  • 3dd0a35032 Initialize the map for dts to reference and source to reference when parsing project reference as its always needed (#61746) Sheetal Nandi 2025-06-04 09:55:15 -07:00
  • 44d46714c8 Update pr_owners.txt (#61798) Jake Bailey 2025-06-03 14:22:16 -07:00
  • 746c23236a Merge remote-tracking branch 'upstream/release-5.8' into tsgo-port Jake Bailey 2025-06-03 11:09:17 -07:00
  • b504a1eed4 Handle lock file 3 version when caching the typings ensuring we can reuse already installed packages (#61730) Sheetal Nandi 2025-05-21 13:58:23 -07:00
  • ea2352acea Handle effective type roots and type ref resolution sharing cache // TODO: update incremental tests to actually verify the cache sharedResolutions Sheetal Nandi 2024-10-04 15:18:21 -07:00
  • 69c37d3c74 Test cases for shared resolutions and effective type roots calculation Sheetal Nandi 2024-10-02 13:40:46 -07:00
  • 80ba2955a4 Real sharing across projects resolutionSharing Sheetal Nandi 2024-09-27 11:36:57 -07:00
  • ee741df30d Factor out cache to be shared and not shared. Projects still are not sharing caches Sheetal Nandi 2025-05-16 15:05:26 -07:00
  • 0633e0e8b2 Dont pollute resolution so we can reuse it across projects Sheetal Nandi 2024-07-19 15:59:05 -07:00
  • fb623b90a3 The redirected reference use that projects tsconfig directory as the root directory for watching resolutions Sheetal Nandi 2024-07-10 12:41:07 -07:00
  • b3ab40123a Handle package json lifetime - All the package json watched are ref counted if watched - Not watched package json locations are released - First of this kind are when resolution from global cache fails, we dont watch those locations so not safe to have them cached - If we are looking for a file and the file is not found, the package json locations looked up are not watched Sheetal Nandi 2024-07-26 14:59:35 -07:00
  • a51e79afc3 Resolutions in cache stays for lifetime.. Sheetal Nandi 2024-07-08 12:04:43 -07:00
  • 254139c45f In preparation of sharing resolutions, watch the resolutions right away instead of defering external module reoslutions to watch all failed lookup locations Sheetal Nandi 2023-07-11 13:38:46 -07:00
  • 3b993fffdd Make sure reused resolutions from file are accounted if all resolutions are reused/are resolved to ambient module names Sheetal Nandi 2023-09-29 11:22:44 -07:00
  • 2f52238b6e Add incremental test where cache should have same resolutions as whats in the program This shows cache is holding onto resolutions that are no longer needed by program because either those modules arent present in file or is determined to be ambient resolution Sheetal Nandi 2023-09-27 14:54:33 -07:00
  • c9dcebe350 Tests Sheetal Nandi 2024-07-15 13:44:09 -07:00
  • 2a08064091 unresolved imports of empty array and undefined are same unresolvedImports Sheetal Nandi 2023-11-09 15:30:59 -08:00
  • 8e23cb4adc Now that work with unresolved imports cleanup is done, remove the temp logging added Sheetal Nandi 2023-11-09 15:24:51 -08:00
  • cbbbf4aae2 If the there is no change detected in module resolution we shouldnt need to update last cached unresolved imports just because we have new program Sheetal Nandi 2023-10-20 14:11:11 -07:00
  • dad8851564 Update cached import list update as part of resolving modules instead of another pass Sheetal Nandi 2023-10-20 13:10:34 -07:00
  • 163778335c Use globalCacheResolution to invalidate resolutions on typings update Sheetal Nandi 2023-10-17 14:55:00 -07:00
  • f659bec764 If typing installer is disabled invalidate all the resolutions from typings cache This change finally makes all tests pass incremental tests for matching resolutions and program structuture Sheetal Nandi 2023-10-12 14:34:14 -07:00
  • 457d9b725a Do not update typings for project if type aquisition is disabled Sheetal Nandi 2023-10-12 12:10:34 -07:00
  • d839caea7f Update the unresolved import list only if it will be used Sheetal Nandi 2023-10-11 16:03:41 -07:00
  • e89404fa2f Close watchers for TI that are no longer needed Sheetal Nandi 2023-10-11 14:20:10 -07:00
  • 3ae4463ad2 When type acquisition is disabled, remove the typing files set as root Also cache the inferred type acquition for inferred project Sheetal Nandi 2023-10-11 12:36:17 -07:00
  • 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 Sheetal Nandi 2023-10-11 12:14:21 -07:00
  • 592bba486b Verify getUnresolvedImports incrementally Sheetal Nandi 2023-10-20 14:19:19 -07:00
  • d81f147bc7 Add test when type acquisition changes Sheetal Nandi 2023-11-07 15:24:28 -08:00
  • 31009c830f Write log about unresolved imports calculation Sheetal Nandi 2023-10-17 12:54:51 -07:00