3528 Commits

Author SHA1 Message Date
Sheetal Nandi
afa03f0948
Allow declarationMap to be emitted when transpiling declarations and option is enabled (#59337) 2024-07-17 17:07:17 -07: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
6369240da6
Store information in buildInfo to repopulate mode mismatch based on status of package.json (#59286) 2024-07-16 10:12:14 -07:00
Anders Hejlsberg
652c96c123
Fix circularity errors in intra-binding-pattern references (#59183) 2024-07-15 13:48:44 -07:00
Gabriela Araujo Britto
03143729b1
Make type comparison error elaboration consistent (#58859) 2024-07-15 11:11:40 -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
Oleksandr T
e450c463c6
fix(59011): TypeScript generates invalid types if @import tags are spread over multiple lines (#59026) 2024-07-10 15:37:49 -07:00
Daniel Rosenwasser
a6fb4dc103
Create a SourceFile-level indirection on children maps, store SyntaxList children directly on nodes. (#59154) 2024-07-08 16:55:41 -07:00
Sheetal Nandi
247a98335d
In project, instead of iterating over program files to determine if file needs to be detached, do it through existing mechanism of releasing oldSourceFile (#59181) 2024-07-08 13:37:44 -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
Mateusz Burzyński
7410cfd632
Deprecate .hasRestElement in favor of combinedFlags (#58864) 2024-06-17 15:53:32 -07:00
Jake Bailey
b63e5307ab
Expose getBigIntLiteralType (#58887) 2024-06-17 11:25:43 -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
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
Evan Wallace
8d62e2f175
Implement "Arbitrary Module Namespace Identifiers" (#58640)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-06-04 13:40:50 -07:00
Wesley Wigham
112e860602
Allow references to the global Symbol in computed property names under isolatedDeclarations (#58771) 2024-06-04 12:55:24 -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
Ben Lickly
fc42002a10
Improve the performance of isolatedDeclarations quickfix (#58722) 2024-05-31 09:04:07 -07:00
Wesley Wigham
bbfc1aa281
Enable JS emit for noCheck and noCheck for transpileModule (#58364) 2024-05-30 13:38:37 -07:00
Gabriela Araujo Britto
8f408cc120
Check resolution of tslib per file (#58654) 2024-05-28 16:45:51 -07:00
graphemecluster
d0ef028841
Improve Recovery of Unterminated Regular Expressions (#58289)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-24 15:46:26 -04:00
Wesley Wigham
b3f3bb3d38
Propagate the error any type in union and intersection construction (#58610)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-23 09:38:57 -07:00
Wesley Wigham
b682ed4504
Lock down computed names in object literals and classes under --isolatedDeclarations (#58596) 2024-05-22 12:28:07 -07:00
Sheetal Nandi
cd40d26f01
Skip typechecking file when generating declaraiton to get d.ts signature for incremental build (#58592) 2024-05-21 14:09:44 -07:00
Andrew Branch
84ab39d7f0
Respect importModuleSpecifierPreference in sort order between fixes for the same symbol from different files (#58597) 2024-05-21 08:36:53 -07:00
Wesley Wigham
2d47953d9d
Declaration emit should avoid issuing errors on unresolved names (#58536) 2024-05-14 12:49:05 -07:00
Sheetal Nandi
524456ff5a
Fix incorrect usage of getResolvedTypeReferenceDirectives and some refactoring (#58527) 2024-05-13 16:03:40 -07:00
Joost Koehoorn
0b37062eb0
Remove unused SymbolLinks properties (#58393) 2024-05-10 15:01:22 -07:00
Wesley Wigham
fece7f11c0
Preserve type nodes which resolve to errors in declaration emit output (#58475) 2024-05-08 13:29:51 -07:00
Andrew Branch
bc14459f3b
Refactor default export info name gathering (#58460) 2024-05-08 09:33:17 -07:00
Wesley Wigham
0d3c48109d
Declaration emit should retain (instead of elide) unresolved computed names (#58428)
Co-authored-by: TypeScript Bot <typescriptbot@microsoft.com>
2024-05-07 05:42:13 -07:00
Jake Bailey
16beff101a
Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Sheetal Nandi
fd81d04080
Lazy calculation of expensive file explaining diagnsotics and some caching to be used to share the diagnostic data (#58398) 2024-05-06 16:30:17 -07:00
Anders Hejlsberg
3a74ec4e99
Disable constraint reduction in intersections created by constraint hoisting (#58403) 2024-05-02 16:55:11 -07:00
Hana Joo
33b156147b
Add a code fixer for --isolatedDeclarations errors (#58260)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-04-30 15:25:51 -07:00
Wesley Wigham
36146aa2ea
Remove seemingly unused SymbolLink constEnumReferenced (#58377) 2024-04-30 11:35:09 -07:00
Ron Buckton
cd566bad95
RegExp syntax checking performance (#58339)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-29 15:12:36 -04:00
Gabriela Araujo Britto
d2ad3ca035
Improve diagnostics deduplication 2 (#58318) 2024-04-29 10:24:22 -07:00
Wesley Wigham
f76727d17a
Add noCheck API option (#57934) 2024-04-26 13:21:15 -07:00
Jake Bailey
8d2e2d53c2
Move RegExp flag version mapping to LanguageFeatureMinimumTarget (#58311) 2024-04-25 15:22:21 -07:00
形素叢集・ぐらふぃーむ
42f238bfbb
Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
Titian Cernicova-Dragomir
e62418e868
Isolated declarations errors (#58201)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 15:37:15 -07:00
Daniel Rosenwasser
e8f22253ba
Don't cache child lists for tokens (#58233) 2024-04-19 14:49:31 -07:00
Wesley Wigham
48870169dc
Check nearest package.json dependencies for possible package names for specifier candidates (#58176) 2024-04-18 17:43:08 -07:00
Jake Bailey
17e420daf6
Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00
Jake Bailey
0dd12da165
Error on replacement character only in top-level scanning (#58227) 2024-04-17 11:34:00 -07:00