Commit Graph

12410 Commits

Author SHA1 Message Date
Oleksandr T
f0d2cadd7d feat(55737): JSDoc {@link} support all 4 types of links (#56244) 2023-11-17 15:07:48 -08:00
Oleksandr T
f07c0dd637 fix(54268): Renaming JSDoc @param symbol only renames the first instance (#56226) 2023-11-17 13:46:42 -08:00
Josh Goldberg ✨
361fafb23c Filtered out types from import suggestions in JS files (#53619)
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-11-16 10:18:24 -08:00
Mateusz Burzyński
32b618c2d8 Fixed a crash when inferring return type of an accessor with errors in its return statement (#56258) 2023-11-15 17:39:58 -08:00
Sheetal Nandi
cf5d7107a9 Track symbols per type thats cached and dont keep adding to them (#56421)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-11-15 16:29:46 -08:00
Mateusz Burzyński
4515089840 Fixed a crash in completions on functionlike types (#56257) 2023-11-15 15:54:41 -08:00
Jake Bailey
3333e906dd Revert "Disallow numeric literals with negative numbers (#55268)" (#56422) 2023-11-15 15:51:47 -08:00
Andrew Branch
a6367977d4 isolatedModules error on alias merging with local value (#56354) 2023-11-15 14:11:12 -08:00
Mateusz Burzyński
d1d14e67d0 Fixed a crash when getting document highlights on out variance annotation (#56408) 2023-11-15 11:34:59 -08:00
Oleksandr T
628bf0ec85 fix(56376): import type from from "foo" (#56385) 2023-11-13 14:43:24 -08:00
Mateusz Burzyński
9f15002959 Fixed narrowing in case clauses that follow other clauses that return (#56358) 2023-11-13 14:41:56 -08:00
Mateusz Burzyński
70becf9af9 Autocomplete from keyword in export declarations (#56029) 2023-11-13 12:52:48 -08:00
Zzzen
7b96c28e8f Add Support for Using Aliased Discriminants in Conditional Statements (#56173) 2023-11-08 15:06:40 -08:00
Jake Bailey
4dd1e2f844 Ensure instantiation expressions have symbols, preventing crash in signature relations (#56064) 2023-11-07 15:59:19 -08:00
Andrew Branch
649e614496 Recognize more "cannot find name" error code variations for codefixes (#56335) 2023-11-07 11:42:06 -08:00
Jake Bailey
1ed8ed6c27 Preserve original type parameter names more often when shadowed (#55820)
Co-authored-by: Wesley Wigham <wwigham@gmail.com>
2023-11-06 15:45:16 -08:00
kazuya kawaguchi
09fc67bd48 fix: add Intl.getCanonicalLocales type definition (#56079)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-11-03 10:56:44 -07:00
Mateusz Burzyński
fd0936755b Improve quick info display on properties belonging to all union contextual type members (#56088) 2023-11-03 10:38:28 -07:00
Ron Buckton
10db6524f1 Move complex parameter lists of async function into downlevel generator body (#56296) 2023-11-03 12:57:07 -04:00
Mateusz Burzyński
6a9bc38da8 Do not narrow using JSDoc type assertion nodes (#56048) 2023-11-03 07:04:45 -07:00
Oleksandr T
65f33a2e92 fix(55998): Ability to Place Open Brace On New Line For Try Catch Blocks (#56021) 2023-11-03 06:02:20 -07:00
Pranav Senthilnathan
9ebd9c4b90 Add more nodes for inlay hints (#56277)
Adds:
- CallSignature
- MethodSignature
- ObjectBindingPattern
- ArrayBindingPattern
- PrefixUnaryExpression
2023-11-02 13:46:35 -07:00
Mateusz Burzyński
3e12250839 Allow of in await using declarations in for-of loops (#55558) 2023-10-31 15:06:36 -04:00
Andrew Branch
0ee2db33ca Fix declaration emit in --moduleResolution bundler using wrong exports conditions (#56265) 2023-10-30 15:39:57 -07:00
Oleksandr T
60ce788302 fix(53933): Confusing rules around function parameter names in a type (#53946) 2023-10-30 15:24:14 -04:00
Oleksandr T
bf78d175d0 fix(55237): TypeScript 5.2 "move to file" results in duplicate imports (#56187) 2023-10-30 10:50:05 -07:00
Isabel Duan
29cfca319b add pushTypeResolution to getTypeOfAlias (#52642)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-10-27 18:08:20 -07:00
Isabel Duan
6061069d96 fix54035, extractType now allows parts of union and intersection types to be extracted (#56131) 2023-10-27 17:59:16 -07:00
Oleksandr T
f25f2bb75d fix(55939): JS Doc comment not shown in signature help when overload tag exists (#56139) 2023-10-27 15:24:07 -07:00
Mateusz Burzyński
a25321afce Ensure all JSX spread properties get visited in ES2018+ (#55859) 2023-10-27 11:36:21 -07:00
Changwon Choe
598d912f69 Add conditions to check for class extension or implementation of prim… (#55712)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-10-26 12:41:58 -07:00
Mateusz Burzyński
1c49a8ba02 Filter possible contextual return types from unions for async functions and generators (#51196) 2023-10-26 12:03:01 -04:00
Mateusz Burzyński
41ebfbf0aa Fixed an issue with string mappings over generic intersections not being deferred in conditional types (#55856) 2023-10-26 06:36:11 -07:00
Oleksandr T
5449489238 fix(55796): JSDoc does not support @this when using an arrow function as method in class (#55877)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-10-25 14:23:04 -07:00
Ron Buckton
8e37e4b853 More reliable mechanism for _this/_super simplification (#56130) 2023-10-23 21:01:11 -04:00
Anders Hejlsberg
b76b4c26ca Improve isDeeplyNestedType for homomorphic mapped types (#56169) 2023-10-23 08:53:46 -07:00
Andrew Branch
aef4e468d9 Add user preference for preferring type-only auto imports (#56090) 2023-10-20 14:52:18 -07:00
Anders Hejlsberg
ac75a5ec9a Fix discriminant property check in CFA (#56156) 2023-10-19 14:04:41 -07:00
Gabriela Araujo Britto
b1f5ef69e8 Improve error message for index signature on generic type when writing (#55906) 2023-10-18 17:43:43 -07:00
Sheetal Nandi
508e52d13a During fourslash server test baseline tsserver log file so that project updates and watches can be baselined and reasoned about (#56132) 2023-10-16 16:08:13 -07:00
Mateusz Burzyński
d6171b9d0b Provide contextual this to functions assigned using compound assignments (#56116) 2023-10-16 11:59:25 -07:00
Mateusz Burzyński
0e07ff50ae Defer checking expressions in void expressions (#56122) 2023-10-16 10:16:19 -07:00
Sheetal Nandi
9473195b6c noDts project resolutions verification and updates for incremental behaviour (#56016) 2023-10-10 10:24:08 -07:00
Mateusz Burzyński
521f8a8caf Ignore awaited self tail calls when collecting the return type of an async function (#56020) 2023-10-10 09:03:18 -07:00
Andrew Branch
d0d406747d Add type reference directive for all visited references to ambient modules (#56015) 2023-10-09 11:38:15 -07:00
Mateusz Burzyński
9144836360 Fixed type narrowing in switch statements with parenthesized expressions (#56035) 2023-10-09 11:36:16 -07:00
Jake Bailey
53a3d24b95 Fix fallthrough and default in new switch-true narrowing (#55991) 2023-10-06 16:23:54 -07:00
Mateusz Burzyński
7377f5cb9d Fixed declaration emit of object literals withs divergent accessors (#55442) 2023-10-05 16:40:45 -07:00
Andrew Branch
5001433b10 Allow valid contextual keyword completions even when an auto-import by the same name exists (#56001) 2023-10-05 16:01:59 -07:00
Andrew Branch
21109b71aa Recognize export * as default as a syntactic default export for synthetic default detection (#55985) 2023-10-05 10:33:24 -07:00