34689 Commits

Author SHA1 Message Date
Andrew Branch
7bfe6ac49a
Make traces where #50762 happens machine analyzable (#52602) 2023-02-06 11:31:07 -08:00
Oleksandr T
70d14f3de2
fix(52594): this incorrectly applies in TS files in typeToString (#52610) 2023-02-06 08:59:32 -08:00
Andrew Branch
0bf99914e7
Make emitModuleKindIsNonNodeESM internal (#52599) 2023-02-06 08:44:58 -08:00
TypeScript Bot
1ed0a5ac4b Update package-lock.json 2023-02-05 06:06:09 +00:00
pyBlob
00eb22030f
Fix completion of partial identifier inside a JsxExpression (#52572)
Co-authored-by: Karl Kraus <karl.kraus@avantagarde-talents.de>
Co-authored-by: Gabriela Araujo Britto <gabrielaa@microsoft.com>
2023-02-03 16:54:56 -08:00
Mateusz Burzyński
c9b5f2b022
Replace missingType with undefinedType in the IndexedAccessTypeNode's type (#52016) 2023-02-03 16:32:22 -08:00
Vitaly
c06711da1b
Handle literal string union complete pattern for JSX attribute snippets (<input type />) (#52562)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-02-03 15:40:00 -08:00
Andrew Branch
2e9da1e5a1
Remove always-incorrect error message about importing .ts extensions (#52595) 2023-02-03 15:02:57 -08:00
Sheetal Nandi
ddadea1732
Make getSupportedCodeFixes plugin test such that we dont need to update its baseline for every new error (#52596) 2023-02-03 13:17:33 -08:00
Andrew Branch
ea47fb1405
Fix false verbatimModuleSyntax error on export namespace in ESM (#52555) 2023-02-03 12:32:01 -08:00
Jake Bailey
c828562eb4
Speed up debug attach by setting outFiles (#52584)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-02-03 10:01:41 -08:00
Tobias S
066c78d590
return baseType in getSubstitutionType when baseType is any (#52573) 2023-02-03 08:35:10 -08:00
TypeScript Bot
bbfb9ac14f Update package-lock.json 2023-02-03 06:06:35 +00:00
Jake Bailey
2a8436c529
Use eslint-plugin-simple-import-sort (#52090) 2023-02-02 14:36:21 -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
Vitaly
87b6fcd895
don't use Extension[] cast (#52556) 2023-02-02 12:59:37 -08:00
Sheetal Nandi
ab5067bd43
Always respect preserveSymlinks (#51842) 2023-02-02 12:37:35 -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
Jake Bailey
9ee33156f5
Make getTypeOfSymbol, isArrayType, isTupleType public on TypeChecker (#52467) 2023-02-01 19:16:38 -08:00
Mateusz Burzyński
8fd1308f58
Cover more literal expressions in getQuickTypeOfExpression (#52181) 2023-02-01 16:59:47 -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
João Santos
fb70d44a08
fix/52457: remove extra the from TS(2809) (#52541) 2023-02-01 09:46:01 -08:00
Jake Bailey
d32118c7f9
Remove line/col for all lib file diagnostics in baselines, completions (#52380)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-02-01 09:33:01 -08:00
Anders Hejlsberg
d656487fca
Permit instantiation expressions in typeof import(...) (#52532) 2023-02-01 09:09:55 -08:00
TypeScript Bot
26eced32ed Update package-lock.json 2023-02-01 06:06:47 +00: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
navya9singh
c93f20bcf8
Fix(50161): Instantiation expressions trigger incorrect error messages (#52373) 2023-01-31 11:15:10 -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
TypeScript Bot
7f41c90454 Update package-lock.json 2023-01-31 06:06:21 +00:00
Ron Buckton
1dc5b28b94
Restore global onProfilerEvent hook for ts-perf (#52523) 2023-01-30 22:23:29 -05:00
Jake Bailey
a514c7b15b
Prevent generation of dynamic require in library bundles (#52522) 2023-01-30 13:15:34 -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
39a9ac84fd
Remove extra checkDefined in visitEachChildOfJsxExpression (#52482) 2023-01-29 17:07:58 -08:00
TypeScript Bot
ac24daad6d Update package-lock.json 2023-01-29 06:06:09 +00:00
TypeScript Bot
7d1cc88a8c Update package-lock.json 2023-01-28 06:06:12 +00:00
Jake Bailey
ef2d363d43
Ensure built/local exists before producing typesMap.json (#52468) 2023-01-27 12:55:46 -08:00
Stéphane Roucheray
41edecd26d
Fix typo in diagnostic messages (#52465) 2023-01-27 11:44:12 -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
TypeScript Bot
737a9312cb Update package-lock.json 2023-01-27 06:06:39 +00:00
Jake Bailey
f794fbf2f6
Mark new createPrinter vars as pure to remove new code from typingsInstaller (#52438) 2023-01-26 16:46:55 -08:00