25189 Commits

Author SHA1 Message Date
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
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
Ron Buckton
1dc5b28b94
Restore global onProfilerEvent hook for ts-perf (#52523) 2023-01-30 22:23:29 -05: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
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
Jake Bailey
f794fbf2f6
Mark new createPrinter vars as pure to remove new code from typingsInstaller (#52438) 2023-01-26 16:46:55 -08:00
Sheetal Nandi
5a419a2f8f
In tsc --b mode detect if root file of compilation is not root any more (#52417) 2023-01-26 16:03:00 -08:00
Jake Bailey
d63d081e37
Mark allowArbitraryExtensions as affectsProgramStructure (#52437) 2023-01-26 13:40:19 -08:00
Andrew Branch
5e8bf480e4
Fix auto-imports with --moduleResolution bundler and customConditions (#52423) 2023-01-26 09:44:07 -08:00
Jake Bailey
0141d1d5f2
Reuse Printers with common options (#52382) 2023-01-25 11:59:02 -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
Jesper van den Ende
273a67fba3
Add linkcode and linkplain to jsdoc tags (#52176) 2023-01-24 01:59:05 -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
Daniel Rosenwasser
06db35c893
Use early bail-out for contextual identifier checks. 2023-01-20 18:17:14 -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
Jake Bailey
1447819df0
Elide line:col info in "!!! related" errors when from default lib.d.ts files (#52330) 2023-01-20 16:51:20 -08:00
Nathan Shively-Sanders
0c2fa391a8
Update DOM and baselines (#52328) 2023-01-20 16:19:59 -08:00
Sheetal Nandi
a097d55f81
Remove long deprecated typingOptions and enableAutoDiscovery (#52339) 2023-01-20 15:39:57 -08:00
Jake Bailey
35d76b0d38
Export more Node tests for use in public API (#52284) 2023-01-20 15:37:29 -08:00
Sheetal Nandi
e474b3df69
Mark APIs related to prepend option deprecated (#52344) 2023-01-20 15:25:19 -08:00
Sheetal Nandi
d76f3612c1
More removals of long deprecated APIs (#52343) 2023-01-20 15:25:06 -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
Sheetal Nandi
e5515164eb
Remove older deprecated APIs (#52338) 2023-01-20 12:55:04 -08:00
Sheetal Nandi
181cf21b68
Deprecate prepend option on project reference (#52312) 2023-01-20 12:10:18 -08:00
Andrew Branch
19d2d9ec01
Don’t let unsorted import groups eagerly derail sort detection (#52332) 2023-01-20 11:10:41 -08:00
Ron Buckton
f526e16b2d
Remove outdated deprecations (#52314) 2023-01-20 12:19:13 -05:00
YuqiangZhang
1e99934b29
fix(52270): update optionalReplacementSpan in continuePreviousIncompleteResponse (#52287)
Co-authored-by: zhangyuqiang <zhangyuqiang@bytedance.com>
2023-01-20 09:15:18 -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
Jake Bailey
ebbc56d0b3
Derive allCommandNames from CommandTypes enum (#52319) 2023-01-19 16:51:41 -08:00
Oleksandr T
6f338b9936
fix(52274): Suggestion code action adds another JSDoc (#52276) 2023-01-19 16:41:26 -08:00
Jake Bailey
ddac387c3e
Deprecate CommandNames in favor of protocol.CommandTypes, direct import for better bundler output (#52208) 2023-01-19 16:31:50 -08:00
Ron Buckton
5b18979697
Implement the Stage 3 Decorators Proposal (#50820) 2023-01-19 17:54:12 -05:00