Commit Graph

11902 Commits

Author SHA1 Message Date
Tobias S
066c78d590 return baseType in getSubstitutionType when baseType is any (#52573) 2023-02-03 08:35:10 -08:00
Nathan Shively-Sanders
0d251ba9bc Improve @overload's interactions with constructors (#52577) 2023-02-02 14:24:17 -08:00
Oleksandr T
0f41b7a390 fix(52418): "Convert to named function" breaks on concise return of async function (#52434) 2023-02-02 13:03:52 -08:00
Oleksandr T
e7dfe82cc5 fix(52543): Module specifier should be escaped for snippet in import statement completion (#52574) 2023-02-02 11:27:10 -08:00
Andrew Branch
4ec9b2f8d7 Fix crash when looking for __esModule during symbol table merging (#52554) 2023-02-02 09:27:10 -08:00
Anders Hejlsberg
30993855fd Consistently propagate intersectionState in relations (#52392) 2023-02-02 07:19:00 -08:00
Vitaly
d0938c85ec imports: display completions to files with extensions from ambient modules (#52406) 2023-02-01 16:43:07 -08:00
Mateusz Burzyński
c72d9292d9 Fixed accidental propagation of caching-related objectFlags (#52546) 2023-02-01 13:18:19 -08:00
Oleksandr T
3880fce249 fix(52455): destructuring function props with "enum" as property name breaks .d.ts (#52544) 2023-02-01 11:44:22 -08:00
Matias Osorio
0715fe5d65 Better compatibility error for indexed access type (#51228) 2023-02-01 10:11:41 -08:00
Andrew Branch
1da47255fa Fix auto-imports of aliased packages with exports (#52538) 2023-02-01 09:49:38 -08:00
Anders Hejlsberg
d656487fca Permit instantiation expressions in typeof import(...) (#52532) 2023-02-01 09:09:55 -08:00
Jake Bailey
95840557bf Prevent valid JSX from being seen as the start of a generic arrow function, fix crashes (#52450) 2023-01-31 16:55:48 -08:00
Mateusz Burzyński
3d07795092 Fixed type lookup on non-exported value symbol when it has an export symbol (#52140) 2023-01-31 16:42:29 -08:00
Oleksandr T
42530c3c8d fix(50952): Can't infer from this type on static class method call in JS Doc (#51149)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-01-31 16:41:03 -08:00
Andrew Branch
60edd0685f Reject auto-imports of relative paths through node_modules in bundler resolution (#52536) 2023-01-31 13:02:59 -08:00
Oleksandr T
7c220232f2 fix(52514): overload Tags do not receive noImplicitAny errors on missing return types (#52518) 2023-01-31 09:41:42 -08:00
Oleksandr T
3c0a3e536c fix(52440): typeof ... === "undefined" check on mapped object member doesn't narrow correctly, for only some purposes (#52456) 2023-01-30 10:28:38 -08:00
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