17645 Commits

Author SHA1 Message Date
Wesley Wigham
46410044ad
Improve error message for unserializable private and protected class members (#59229) 2024-07-11 11:05:52 -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
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
Wesley Wigham
ed17a89c1e
Write non-missing undefined on mapped type results into output (#59208) 2024-07-10 13:05:12 -07:00
Wesley Wigham
de77dd4726
Skip ID inference errors on nodes collected from other files (#59203) 2024-07-09 16:03:17 -07:00
Jake Bailey
533acb5ad9
Consider enclosing declaration when serializing inferred return types (#59170) 2024-07-09 14:35:27 -07:00
Mateusz Burzyński
c9dd98ee7f
Fixed regression in signature instantiation (#59121) 2024-07-09 11:34:07 -07:00
Mateusz Burzyński
65baa7df9d
Fixed a regression in declaration emit of computed non-dynamic names (#59110) 2024-07-09 11:21:52 -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
Mateusz Burzyński
3163fe7e38
Fixed crash when cross-file reusing nodes for class member snippet completions (#58216) 2024-07-04 10:38:25 -07:00
Mateusz Burzyński
f374ec5fbe
Fixed intersections of primitive unions with exactOptionalPropertyTypes when mixing undefinedType with missingType (#58186) 2024-07-01 11:17:01 -07:00
Sheetal Nandi
cb98634f49
Remove errors if noEmit is sepcified with noCheck or emitDeclarationOnly (#59071) 2024-06-28 15:25:14 -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
a6bc4ecbe5
Remove refCount from resolutions as we dont need it explicitly since its tracked by files it references (#59041) 2024-06-26 12:46:53 -07:00
Sheetal Nandi
7c011e766e
Refactor resolving module or type reference name (#59040) 2024-06-26 12:46:39 -07:00
Mateusz Burzyński
c8f2405456
Fixed an issue with top-level for-await loops not being allowed with --module preserve (#59042) 2024-06-26 12:40:07 -07:00
Ron Buckton
e70904a24f
Implement deterministic collapse of 'await' in 'await using' (#58929) 2024-06-25 15:28:24 -04:00
Andrew Branch
fa4f2e5148
Allow dynamic import attributes in --module preserve (#59005) 2024-06-25 07:31:32 -07:00
Anders Hejlsberg
6c01f6c584
Allow partial matches in discrimination logic (#58974) 2024-06-25 07:14:12 +02:00
Oleksandr T
c219989232
fix(58955): @import JSDoc tag doesn't seem to account for resolution-mode import attribute in TS v5.5.2 (#58966) 2024-06-24 15:09:04 -07:00
Ron Buckton
c76c418ffe
Fix 'accessor' crash for invalid modifier locations (#58963) 2024-06-24 16:18:44 -04:00
Mateusz Burzyński
3743fbc748
Consistently avoid module resolution errors when using getSymbolAtLocation (#58668) 2024-06-24 09:03:32 -07:00
Daniel Rosenwasser
327bd0990f
Add non-mutating Array methods to es2023 in the lib/target suggestion list (#58951) 2024-06-20 16:11:39 -07:00
Sheetal Nandi
beb375a9ca
Fix incorrect lib condition again! (#58945) 2024-06-20 13:18:39 -07:00
Jake Bailey
ef079c9dd3
Update to TS 5.5.2 (#58947) 2024-06-20 12:34:07 -07:00
Jake Bailey
aa249c094b
Revert "Fix incorrect condition of noLib" (PR 58867) (#58935) 2024-06-19 14:31:51 -07:00
Daniel Rosenwasser
4935e14901
Use more explicit operations in core helpers (and other nits) (#58873) 2024-06-18 16:00:00 -07:00
Sheetal Nandi
4239025fa3
Fix incorrect condition of noLib (#58867) 2024-06-18 15:17:29 -07:00
Mateusz Burzyński
7410cfd632
Deprecate .hasRestElement in favor of combinedFlags (#58864) 2024-06-17 15:53:32 -07:00
Mateusz Burzyński
a71841c77b
Improve logic that chooses co- vs. contra-variant inferences (#57909) 2024-06-17 15:25:06 -07:00
Andrew Branch
e6ae9866fd
Fix declaration emit crash (#58872) 2024-06-17 12:01:40 -07:00
Jake Bailey
b63e5307ab
Expose getBigIntLiteralType (#58887) 2024-06-17 11:25:43 -07:00
Mateusz Burzyński
0ca1973d8f
Fixed widening errors locations in union-normalized object literal types (#58157) 2024-06-14 13:20:17 -07:00
Mateusz Burzyński
61ffce078b
Fixed reported errors for variadic element mismatches (#58708) 2024-06-14 13:17:42 -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
Mateusz Burzyński
c2e48e564a
Fixed declaration emit issue related to a qualifier being reused cross-file (#58810) 2024-06-14 08:14:05 -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
Jake Bailey
e30b5fbafe
Remove typescript-etw (#58832) 2024-06-13 13:04:51 -07:00
Mateusz Burzyński
e370c867c0
Fixed declaration emit crash related to enum entity name expressions (#58786) 2024-06-13 10:59:26 -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
Oleksandr T
4ada2706a7
fix(57141): override keyword doesn't check symbol-key class members (#57146) 2024-06-12 16:25:06 -07:00
Sheetal Nandi
dca9182ca8
Always write tsbuildInfo when running tsc -b (#58626) 2024-06-12 13:46:19 -07:00
Mateusz Burzyński
359646b48b
Fixed a regression with reporting unused parameters in potential predicates (#58514) 2024-06-12 13:29:59 -07:00