11884 Commits

Author SHA1 Message Date
Jake Bailey
477ec2c3a8
Get export symbol if needed for verbatimModuleSyntax check on default/equals exports (#52448) 2023-01-27 10:13:56 -08:00
Andrew Branch
5e8bf480e4
Fix auto-imports with --moduleResolution bundler and customConditions (#52423) 2023-01-26 09:44:07 -08:00
Mateusz Burzyński
45c246f28c
Fixed a mistake in the narrowingDestructuring test (#52411) 2023-01-25 10:50:29 -08:00
Oliver Radini
a311e25305
Add 2023 array methods to target features (#52242) 2023-01-25 10:31:53 -08:00
Jake Bailey
be488fa075
Revert part of catch clause PR which broke other declarations (#52403) 2023-01-25 10:24:25 -08:00
Andrew Branch
022516e24d
Suppress verbatimModuleSyntax error on ambient export default (#52414) 2023-01-25 10:22:56 -08:00
Oleksandr T
43ecac801b
fix(52386): JSDoc code fixes for arrow-function initialized const duplicates comment (#52390) 2023-01-24 23:42:57 -08:00
Oleksandr T
9ee093c094
feat(52366): @prop is not provided as a valid JSDoc tag in autocompletion (#52384) 2023-01-24 02:00:23 -08:00
Jake Bailey
10941888dc
Plumb formatting to getDocCommentTemplateAtPosition (#52349)
Fixes https://github.com/microsoft/TypeScript/issues/52348
2023-01-23 15:31:58 -08:00
Jake Bailey
87c808ff2a
Add test case for #52271 (#52333)
Fixes https://github.com/microsoft/TypeScript/issues/52271
2023-01-23 11:59:24 -08:00
Ryan Cavanaugh
ff92ab0ac9
Change default newLine, forceConsistentCasingInFileNames (#52298)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-01-20 17:20:26 -08:00
Oleksandr T
1d81c1dfef
fix(51521): Using a of property declared after an initializing constructor triggers an assertion failure in JS (#51524)
Fixes https://github.com/microsoft/TypeScript/issues/51521
2023-01-20 14:43:23 -08:00
Andrew Branch
f576398194
Support export type * (#52217) 2023-01-20 14:24:48 -08:00
Mateusz Burzyński
2acbceed4b
Improve comparison operators type checking to disallow unions containing numbers as an operand (#52048) 2023-01-20 13:34:48 -08:00
Andrew Branch
19d2d9ec01
Don’t let unsorted import groups eagerly derail sort detection (#52332) 2023-01-20 11:10:41 -08:00
Tobeyyy
e01ced050c
fix type checking of variables named "exports" (#52209) 2023-01-19 16:59:07 -08:00
Andrew Branch
cfe1842adf
Add verbatimModuleSyntax, deprecate importsNotUsedAsValues and preserveValueImports (#52203) 2023-01-19 16:56:30 -08:00
Oleksandr T
6f338b9936
fix(52274): Suggestion code action adds another JSDoc (#52276) 2023-01-19 16:41:26 -08:00
Ron Buckton
5b18979697
Implement the Stage 3 Decorators Proposal (#50820) 2023-01-19 17:54:12 -05:00
Ron Buckton
20182cf848
Organize imports collation (#52115) 2023-01-19 17:53:51 -05:00
Nathan Shively-Sanders
abd6cb446f
Improve quickinfo/signature/completions baselines (#52308) 2023-01-19 14:39:14 -08:00
Jake Bailey
6622308206
Add followup test to #52123 test (#52178) 2023-01-19 12:53:03 -08:00
Jake Bailey
b7f619d25e
Make catch clause checking consistent with variable declarations (#52240) 2023-01-19 11:56:37 -08:00
Nathan Shively-Sanders
ecaf6d91a7
Revert "Add undefined to JSON.stringify return type (#51897)" (#52307) 2023-01-19 09:24:31 -08:00
Andrew Branch
436833aba1
Allow allowImportingTsExtensions to be set in any module resolution mode (#52230) 2023-01-17 15:13:17 -08:00
Oleksandr T
8094007a1d
fix(52277): switch/case completions fail when has a negative literal type (#52278) 2023-01-17 14:10:29 -08:00
Mateusz Burzyński
16c695cdbb
Improve uncalled function check related to parenthesized and binary expressions (#50756)
fixes https://github.com/microsoft/TypeScript/issues/37598
2023-01-17 13:22:16 -08:00
Oleksandr T
9c9d4b029d
feat(51086): satisfies support in JSDoc (#51753) 2023-01-17 10:22:22 -08:00
Oleksandr T
577cc1bd8a
fix(52233): Ambient modules declared with patterns are offered in path completions (#52246) 2023-01-17 09:41:16 -08:00
Gabriela Araujo Britto
67a3846fbf
Fix replacementSpan for class member snippet completion entries (#52231) 2023-01-16 10:32:24 -08:00
Mykola Basov
cb4c7689e6
Add Array.prototype.findLast() and Array.prototype.findLastIndex() (#49636)
Signed-off-by: mbasov2 <mbasov2@bloomberg.net>
2023-01-13 15:35:50 -08:00
Oleksandr T
86ccd20e53
fix(52212): No member completions, and irrelevant value completions, when class property initializer has no semicolon (#52213) 2023-01-13 14:23:36 -08:00
Anders Hejlsberg
41e4139357
Only used cached undefined contextual type for requests with no flags (#52224) 2023-01-13 10:10:56 -08:00
Anders Hejlsberg
d6de73b20a
Instantiate rest type as needed in getNarrowedTypeOfSymbol (#52215) 2023-01-13 07:23:39 -08:00
Anders Hejlsberg
36e9570933
Propagate constness of type parameters in variadic tuples (#52129) 2023-01-13 07:23:04 -08:00
Andrew Branch
3e9703f126
Add additional diagnostic for packages that only resolve under non-exports-respecting modes (#52173) 2023-01-12 16:30:35 -08:00
Anders Hejlsberg
59e4e38d08
Don't widen when type parameter occurs at top level in type predicate (#52031) 2023-01-12 13:18:36 -08:00
Wesley Wigham
9da2a9aa84
Fix inferences between alias type arguments and defaulted alias type arguments (#51771) 2023-01-11 15:28:53 -08:00
Oleksandr T
6860373c1a
fix(52177): Wrong space in type assertions when using array (#52184) 2023-01-11 14:59:22 -08:00
Jake Bailey
28e4c81794
Tweak co/contra inference logic from #52123 (#52180) 2023-01-10 17:08:36 -08:00
Andrew Branch
14b0d6d4bf
Fix nested package json lookup in modes that respect package.json exports (#51995) 2023-01-10 16:18:26 -08:00
Jake Bailey
b3eca6883c
Suppress resolvedUsingTsExtension during loadModuleFromDirectory (#52189) 2023-01-10 16:05:44 -08:00
Mateusz Burzyński
3da4886c76
Fixed an issue with quickInfo crashing on a function property returned from generic function (#49049) 2023-01-10 16:05:01 -08:00
Andrew Branch
ec9f6a428b
Ensure self-name resolution uses same extension priorities as external imports (#52185) 2023-01-10 13:57:50 -08:00
Mateusz Burzyński
32da8a2856
Add a test for indexed access on generic mapped type (#52069) 2023-01-10 13:46:20 -08:00
Mateusz Burzyński
48b6b8b1d9
Add a regression test for mapped type with as clause that bypassed interface extension check (#52070) 2023-01-10 13:45:38 -08:00
Josh Goldberg
67cdaf9215
Fixed crash when reporting infer extends on invalid name with declaration (#52032) 2023-01-10 13:11:24 -08:00
Mateusz Burzyński
94afa32925
Add an extra test case for circular base type (#52071) 2023-01-10 13:04:58 -08:00
Gabriela Araujo Britto
2082ef2e3f
fix narrowTypeByDiscriminant for non null expression access (#52136) 2023-01-10 09:49:13 -08:00
Wesley Wigham
89e928e8b4
Add --allowArbitraryExtensions, a flag for allowing arbitrary extensions on import paths (#51435) 2023-01-09 17:12:42 -08:00