Commit Graph

1673 Commits

Author SHA1 Message Date
Andrew Branch
7f597beb2e Don’t try to recreate AutoImportProvider after giving up because of too many dependencies until program structure changes (#59692) 2024-08-20 17:12:28 -07:00
Sheetal Nandi
d06fb82d7c Add option --stopBuildOnErrors to tsbuild to get previous behavior of not building downstream projects if upstream has errors (#59433) 2024-08-16 19:02:42 -07:00
Ron Buckton
f025a5b879 built-in iterators should be disposable (#59633) 2024-08-16 11:57:04 -04:00
Titian Cernicova-Dragomir
52395892e0 Set declarationMap to false in transpileModule. (#59642) 2024-08-15 16:57:37 -07:00
Jake Bailey
25e09d9fc3 Add custom eslint rule 'no-array-mutating-method-expressions' (#59526) 2024-08-14 09:28:57 -07:00
Sheetal Nandi
7753487591 Handle delayed or missed watches for project updates (#59625) 2024-08-13 17:58:08 -07:00
Jake Bailey
195203e971 Add regex eslint plugin, fix lints (#59371) 2024-08-13 14:16:53 -07:00
Wesley Wigham
03bca1d8fe Allow trailing commas on lambda type parameter lists (#59612) 2024-08-13 11:55:27 -07:00
Ron Buckton
67d0fc13ce Use global Iterator.prototype for down-level generators (#59514) 2024-08-08 12:20:59 -04:00
Andrew Branch
34048178a2 Move ambient const enum error from use site to import in verbatimModuleSyntax (#59438) 2024-07-30 11:20:59 -07:00
Jake Bailey
74cefa848c Tighten signature of append (#59426) 2024-07-26 10:08:40 -07:00
Isabel Duan
107a007a9a organizeImports makes no changes if there are parse errors in the sourceFile (#58903) 2024-07-25 16:28:19 -07:00
Sheetal Nandi
941d1543c2 Use open file to determine file existence (#59418) 2024-07-25 15:46:05 -07:00
Jake Bailey
85d6bb6fe6 Add new option "noUncheckedSideEffectImports" (#58941) 2024-07-19 17:35:02 -07:00
Ron Buckton
6f530cc4ce Add TReturn/TNext to Iterable et al (#58243) 2024-07-19 13:14:00 -04:00
Sheetal Nandi
afa03f0948 Allow declarationMap to be emitted when transpiling declarations and option is enabled (#59337) 2024-07-17 17:07:17 -07:00
Ron Buckton
e7e813542a Work around inconsistent recursive directory watch events (#59328) 2024-07-17 16:51:44 -04:00
Andrew Branch
a9139bfdfe Only look up package.json type if module is node16/nodenext or file is in node_modules (#58825)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-07-17 09:23:51 -07:00
Sheetal Nandi
f37482cd16 Always watch package jsons for the sourceFile (#59311) 2024-07-16 16:01:33 -07:00
Sheetal Nandi
5e105ea71a Use correct current directory for calculation for tests for reusable program tests (#59303) 2024-07-16 12:47:21 -07:00
Sheetal Nandi
6369240da6 Store information in buildInfo to repopulate mode mismatch based on status of package.json (#59286) 2024-07-16 10:12:14 -07:00
Sheetal Nandi
9c093c13e6 Do not reuse ambient module name resolution from other files while determining if resolution can be reused (#59243) 2024-07-12 14:43:00 -07:00
Armando Aguirre
972e9a70c6 Added affectsSourceFile to importHelpers and jsxImportSource (#59195)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-07-10 14:18:45 -07:00
navya9singh
ded36b21ac pasteEdits returns no edit when there are no imports needed (#59189) 2024-07-09 10:27:41 -07:00
Sheetal Nandi
6c68fdd4b5 Delay the calculation of common source root if it would be needed when calculation dts files (#59070) 2024-06-28 14:29:11 -07:00
Sheetal Nandi
22bbe867fd Show dts errors with --noEmit, fix some of the incremental noEmit issues and support dts diagnostics and fix the caching diagnostics in program (#59065) 2024-06-28 13:55:49 -07:00
Lars Kappert
752135eb40 Remove unused exports & dead code (using Knip) (#56817)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-06-27 14:24:01 -07:00
Sheetal Nandi
f7833b2a72 On linux or editor with canUseEvents to prefer immediate directory if its not in root or node_modules (#58866) 2024-06-27 11:32:33 -07:00
Sheetal Nandi
15f67e0b48 Option to skipSysTests since they dont change branch to branch and ca… (#59025) 2024-06-26 09:41:01 -07:00
Jake Bailey
ef339af128 Use regular imports instead of require where possible (#59017) 2024-06-25 13:56:05 -07:00
Ron Buckton
e70904a24f Implement deterministic collapse of 'await' in 'await using' (#58929) 2024-06-25 15:28:24 -04:00
Sheetal Nandi
f2f91ccc64 Make canUseWatchEvents test framework more generic so we can add more tests easily (#58962) 2024-06-25 10:19:01 -07:00
Sheetal Nandi
d403e0850f Fix the consistency and correctness of performanceData reported per request (#58968) 2024-06-24 19:02:19 -07:00
Mateusz Burzyński
3743fbc748 Consistently avoid module resolution errors when using getSymbolAtLocation (#58668) 2024-06-24 09:03:32 -07:00
Sheetal Nandi
beb375a9ca Fix incorrect lib condition again! (#58945) 2024-06-20 13:18:39 -07:00
Jake Bailey
aa249c094b Revert "Fix incorrect condition of noLib" (PR 58867) (#58935) 2024-06-19 14:31:51 -07:00
Sheetal Nandi
4239025fa3 Fix incorrect condition of noLib (#58867) 2024-06-18 15:17:29 -07:00
Sheetal Nandi
d44c9c32e9 Always build project irrespective of errors in dependency with tsc -b (#58854) 2024-06-14 13:12:07 -07:00
Sheetal Nandi
e834989ebd Allow --noCheck to be commandLine option (#58839) 2024-06-14 11:40:32 -07:00
Andrew Branch
56289733a4 Revert #57896 (#58857) 2024-06-13 16:40:23 -07:00
Gabriela Araujo Britto
4857546865 Region-based semantic diagnostics (#57842) 2024-06-13 16:21:01 -07:00
Sheetal Nandi
b258429aaa tsc -b removes silent noEmitOnError and emits files even if there are errors (#58838) 2024-06-13 13:12:35 -07:00
Andrew Branch
97f3f0c8dd Disable #57896 (Respect package.json "type" and module-format-specific file extensions in more module modes) (#58831) 2024-06-12 16:48:25 -07:00
Sheetal Nandi
dca9182ca8 Always write tsbuildInfo when running tsc -b (#58626) 2024-06-12 13:46:19 -07:00
Sheetal Nandi
d8086f14b6 BuildInfo refactoring: Now that we dont have bundle we dont need program field explicitly (#58789) 2024-06-06 15:08:11 -07:00
Sheetal Nandi
b9d96df61f Some refactoring so we arent checking undefined on program or asserting it so much (#58782) 2024-06-05 16:42:36 -07:00
Sheetal Nandi
9edddc73ad Write buildInfo even if we dont emit js or dts for --outFile scenarios (#58760) 2024-06-03 17:06:14 -07:00
Sheetal Nandi
145b106c20 Tests refactor for easy comparison between outFile and multiFile scenario (#58761) 2024-06-03 13:59:28 -07:00
Ron Buckton
2a9e4b8aa2 await using normative changes (#58624) 2024-05-29 17:34:00 -04:00
Sheetal Nandi
7ad8f39118 Some tests coverage for --out and errors scenarios (#58652) 2024-05-24 14:12:38 -07:00