Commit Graph

17041 Commits

Author SHA1 Message Date
Andrew Branch
660bf60cca Make module, not moduleResolution, the trigger for setting impliedNodeFormat 2023-06-26 11:45:35 -07:00
Oleksandr T
de6e6abbac fix(54465): Broken emit with private field in class decorator (#54679) 2023-06-23 17:09:48 -04:00
Mateusz Burzyński
39da6b1c63 Display property types in optional chains without optional type marker (#53804) 2023-06-23 13:04:08 -04:00
Oleksandr T
bc91920cc6 feat(53461): Implement decorator metadata proposal (#54657) 2023-06-23 10:55:22 -04:00
Ron Buckton
f9cf8216c6 Support using and await using declarations (#54505) 2023-06-22 17:02:56 -04:00
Andrew Branch
d90eb0d731 Require module/moduleResolution to match when either is node16/nodenext (#54567) 2023-06-22 13:35:52 -07:00
Gabriela Araujo Britto
49deff209a Make the implicitly exported rule consistent between checker and binder (#54659) 2023-06-22 12:27:53 -07:00
Mateusz Burzyński
70fe93fe33 Automatically enable debugMode when recording with Replay (#49027) 2023-06-22 11:19:32 -07:00
David Sherret
b5adef59ec fix(dts): JsxSpreadAttribute - remove name from types (#54599) 2023-06-20 20:35:58 -07:00
Gabriela Araujo Britto
f647b11846 Use function that doesn't return unknown type (#54713) 2023-06-20 13:47:12 -07:00
Mateusz Burzyński
abf0ef8eef Fixed an issue with errors not being correctly reported after completion requests in nested calls (#54658) 2023-06-20 12:04:08 -07:00
Anders Hejlsberg
84d8429fb6 Add depth limiter to isConstTypeVariable function (#54624) 2023-06-16 12:48:44 -07:00
Gabriela Araujo Britto
03951f2ddf Consider index signatures as optional properties in contextual type discrimination (#54596) 2023-06-13 09:57:51 -07:00
Mateusz Burzyński
c565827b4f Fixed some string literal argument completions depending on resolved signature (#53996) 2023-06-13 09:34:19 -07:00
Maria José Solano
31936ea36e Add inline variable refactor (#54281) 2023-06-12 20:03:43 -07:00
Anders Hejlsberg
89cbea8e16 No this type arguments in base constraints (#54536) 2023-06-12 19:07:44 -07:00
Jack Works
e60cf121ae Add check for reference-compared literals to JS files (#49164) 2023-06-12 16:02:25 -07:00
GuLewei
6a996ac995 Additional fix to issue #50509 (#54423) 2023-06-12 15:31:51 -07:00
Mateusz Burzyński
9d17b345b4 Revert collecting only outermost intra expression inference sites (#54613) 2023-06-12 10:09:07 -07:00
leoelm
eeed72171f Type definitions for 'Symbols as WeakMap keys' (#76) (#54195)
Signed-off-by: Leo Elmecker <lelmeckerpla@bloomberg.net>
2023-06-09 14:20:26 -04:00
Wesley Wigham
3cfd6d2b87 Optimize eagerly calculating CouldContainTypeVariables during object type instantiation (#54538) 2023-06-06 14:14:49 -07:00
Sheetal Nandi
3c4c060dff Adds tests and fixes issues by verifying incremental project updates are handling language service ref counting correctly (#54504) 2023-06-06 11:11:14 -07:00
Oleksandr T
93ac5c6529 fix(54463): Move to existing file — Error: Debug Failure. at doChange4 (#54482) 2023-06-06 09:56:03 -07:00
Jake Bailey
e3c5209ae2 Ensure we don't overwrite computed CouldContainTypeVariables in new optimization (#54507) 2023-06-05 15:31:19 -07:00
Mateusz Burzyński
9583850fa7 Deconflict values of CheckMode.RestBindingElement and CheckMode.TypeOnly (#54540) 2023-06-05 13:37:38 -07:00
Mateusz Burzyński
4749c38e47 Only collect outermost intra expression inference sites (#54186) 2023-06-05 12:40:11 -07:00
Mateusz Burzyński
2fb0267630 Treat this as a constant reference for purpose of narrowing using aliased expressions (#54347) 2023-06-01 16:44:53 -07:00
Oleksandr T
b03926ea78 fix(54411): Compiled code contain jsx code (#54425) 2023-06-01 14:01:25 -04:00
Andrew Branch
23d48364e4 Add to module resolution tracing (#54478) 2023-06-01 10:03:40 -07:00
Andrew Branch
1e0b2f4912 Code fix should prefer import type (#54255) 2023-06-01 09:57:08 -07:00
Ron Buckton
4c01b2f9ee Fix incorrect 'this' substitution in decorated static 'accessor' fields (#54474) 2023-05-31 18:17:43 -04:00
Andrew Branch
fec0bd3275 Resolve tslib re-exports before checking arity (#54450) 2023-05-30 13:47:06 -07:00
Jake Bailey
544d43286a Fix fs.watch callback type for new @types/node (#54417) 2023-05-26 15:29:11 -07:00
Mateusz Burzyński
2f626bff03 Elaborate errors on const asserted expressions (#54396) 2023-05-26 10:05:33 -07:00
Anders Hejlsberg
f5ab714d1f Suppress error caused by intermediate types in getTypeOfExpression (#54380) 2023-05-26 09:30:06 -07:00
Zzzen
f4c2a227a7 fix flow type of this inside arrow function (#54236) 2023-05-24 15:57:36 -07:00
Oleksandr T
13169870b4 fix(54152): Cannot use const enum to define an interface key in isolatedModules mode (#54165) 2023-05-24 12:14:19 -07:00
Jake Bailey
4c82d918bc Don't linearly search for fresh param in getConditionalType (#53662) 2023-05-24 11:41:20 -07:00
Mateusz Burzyński
7baf6cd120 Avoid infinite recursion when instantiating circular inline mapped generic tuple type (#53522) 2023-05-24 11:41:04 -07:00
Mateusz Burzyński
1518cd98f4 Fixed declaration emit for undefined properties inferred from functions in other array elements (#53938) 2023-05-24 10:19:01 -07:00
Mateusz Burzyński
1561701b9f Allow to define valid static fields with names conflicting with builtin properties (#54198) 2023-05-22 16:44:24 -07:00
João Nuno Mota
0d262616f3 Add extra Date.UTC signature to reflect ES2017 changes (#54125) 2023-05-22 16:23:08 -07:00
Ruben Tytgat
0bfc9f51ec Fix a logic-changing typo in getRecursionIdentity (#54321) 2023-05-22 10:34:05 -07:00
Anders Hejlsberg
6f7704e0e2 Properly handle typeof this.xxx in isTypeParameterPossiblyReferenced (#54208) 2023-05-20 09:37:35 -04:00
Anders Hejlsberg
1ea21e1ef1 Fix isGenericReducibleType to allow HKT technique to function again (#54112) 2023-05-20 09:36:38 -04:00
Anders Hejlsberg
215fe6ef75 Fix creation of composite union type predicates (#54169) 2023-05-19 16:15:46 -04:00
Andrew Branch
2b7d517907 Resolve re-exports when looking for tslib helpers (#54317) 2023-05-19 10:13:53 -07:00
Oleksandr T
ce1c97f4f0 fix(54283): Provide better UX when an invalid file is selected for 'move to file' refactoring (#54300) 2023-05-18 10:36:34 -07:00
Gabriela Araujo Britto
24ac9e75c2 Improve class member snippet completions and keyword completions interaction (#52525) 2023-05-17 15:14:34 -07:00
Ron Buckton
b14264a2eb Reverse order of decorator-injected initializers (#54269) 2023-05-17 17:12:13 -04:00