12164 Commits

Author SHA1 Message Date
Oleksandr T
d762534463
fix(54383): Declare method quick fix not returned for #private method (#54400) 2023-05-26 10:06:20 -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
Russell Davis
da686774dc
Formatter: fix indentation of comments at end of range (#54250) 2023-05-25 13:13:53 -07:00
Oleksandr T
1a8c7ae447
fix CI build (#54386) 2023-05-25 10:22:05 -07:00
Oleksandr T
8db251fb47
fix(52517): JSDoc Comment Template not provided when unrelated JSDoc with tag exists (#54132) 2023-05-24 16:19:49 -07:00
Oleksandr T
8ea3887f70
fix(54155): "Move to file" does not carry all function overload and implementation signatures (#54164) 2023-05-24 16:17:43 -07:00
Zzzen
f4c2a227a7
fix flow type of this inside arrow function (#54236) 2023-05-24 15:57:36 -07:00
Oleksandr T
bb74c60723
feat(54190): Convert to template string quick fix not available in assignment expressions (#54210) 2023-05-24 15:42:07 -07:00
Oleksandr T
6cbe2e02a4
fix(54085): Cannot navigate down object hierarchy if an interface is not directly implemented (#54108) 2023-05-24 14:06:25 -07:00
Gabriela Araujo Britto
e7d62e57aa
Don't use text change's createNewFile for existing empty file (#54358) 2023-05-24 12:26:11 -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
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
fefcb81d48
Add extra tests for recursive conditional types (#54030) 2023-05-24 10:50:10 -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
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
Gabriela Araujo Britto
24ac9e75c2
Improve class member snippet completions and keyword completions interaction (#52525) 2023-05-17 15:14:34 -07:00
Mateusz Burzyński
074f20877d
Fix JSX inference with excess properties (#53810) 2023-05-16 15:30:50 -07:00
Wesley Wigham
b0c80207ac
Add fallback logic for generating signatures for unions of array members (#53489) 2023-05-16 15:12:37 -07:00
Mateusz Burzyński
d3513ee5c4
Improved go to type definition on type references of global container-like types using allowlist (#53729) 2023-05-15 13:40:18 -07:00
Mateusz Burzyński
cb88998063
Evaluate simple template expressions (#53907) 2023-05-15 12:51:06 -07:00
Nathan Shively-Sanders
72037a9796
Skip resolving files directly inside node_modules (#52809) 2023-05-11 08:16:17 -07:00
navya9singh
d7b8662f4d
Fix for formatter crash for Move to file (#54199) 2023-05-09 14:01:59 -07:00
Mateusz Burzyński
a4009a335a
Add extra tests for contextual typing of unannotated parameters with default initializers (#53940) 2023-05-09 11:58:16 -07:00
Wesley Wigham
02bb3108ad
JSX namespace names should not be considered expressions (#54104) 2023-05-09 10:45:58 -07:00
Jm
362703a213
Cover more cases for node module auto-import (#54024) 2023-05-09 09:46:55 -07:00
Oleksandr T
320e628a6d
fix(53424): in code documentation is not working upon import if function expression reuse function type (#53964) 2023-05-08 16:55:04 -07:00
Mateusz Burzyński
6947c98929
Fixed issue with spreading a generic call expression into generic JSX and gather intra expression inference sites from spread expressions (#53444) 2023-05-08 13:53:15 -07:00
Maria José Solano
42d69cfa77
Handle undefined location.parent when getting completionEntryDetails (#54138) 2023-05-05 13:41:50 -07:00
Ryan Cavanaugh
e9cbebbc89
Ignore self tail calls when collecting the return type of a function (#53995) 2023-05-05 10:16:11 -07:00
Jake Bailey
c333e14578
Ensure that JSDoc parsing happens within a ParsingContext (#52710) 2023-05-04 09:55:34 -07:00
Nathan Shively-Sanders
840a0bfc08
Error on template tag inside callback/overload/typedef tag (#54118) 2023-05-04 09:51:43 -07:00
Ron Buckton
f9a7cbfe7b
Fix crash in getAwaitedType (#54107) 2023-05-03 15:40:51 -04:00
Steven
ec1205cec1
Fix/issue 53286 (#53885) 2023-05-02 15:53:42 -07:00
Anders Hejlsberg
44f4e276b7
Constraints for generic tuple types (#53672) 2023-05-02 10:35:49 -07:00
Anders Hejlsberg
94564cf073
Type with diverging read/write normalizations still identical to itself (#54033) 2023-05-02 06:40:41 -07:00
Anders Hejlsberg
ae6393e5eb
Add fallback when both co- and contra-variant inference candidates exist (#54072) 2023-05-02 06:39:57 -07:00
Ron Buckton
611a912dd1
Fix class alias reference in static initializer for legacy class decorators (#54046) 2023-04-28 15:45:40 -04:00
Ron Buckton
be27970251
Fix 'var' hoisting in 'if' in CJS/AMD emit (#54036) 2023-04-27 15:58:41 -04:00
Nathan Shively-Sanders
063276aac9
Bind JSDoc on SemicolonClassElement (#54044) 2023-04-27 11:47:16 -07:00
Oleksandr T
3c43b6b1be
fix(53754): Re-exported symbol marked with deprecated doesn't get correct deprecation highlighting (#53808) 2023-04-27 09:45:10 -07:00
Nathan Shively-Sanders
1577535205
Fix callback return type annotation before constructor (#54034) 2023-04-26 13:46:55 -07:00
Mateusz Burzyński
2cbfb51ebb
Fixed JSX attributes discriminating based on optional children (#53980) 2023-04-26 13:39:08 -07:00
Ron Buckton
5ad4ac8d11
Fix 'var' hoisting in 'if' in SystemJS emit (#54016) 2023-04-25 18:03:39 -04:00
Oleksandr T
546be4b360
fix(53735): Definition file generated from javascript is missing getter (#53768) 2023-04-25 14:42:15 -07:00