Commit Graph

6665 Commits

Author SHA1 Message Date
Oleksandr T 1347152595 fix(48260): Incorrect parameter hint is highlighted when arguments contain spread syntax (#56372)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-12-04 11:24:11 -08:00
Oleksandr T 02453a0a1d fix(56052): Rename Symbol F2 with "pure keyof" is not possible - but it is possible if "wrapped as calculated property" (#56061)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-12-04 11:11:00 -08:00
Daniel Rosenwasser 8a6ad459d5 ParseNone -> ParseAll (#56639) 2023-12-01 17:17:02 -08:00
Sheetal Nandi 5bc6617738 Transpile jsdoc parsing mode (#56627) 2023-11-30 17:21:41 -08:00
Pranav Senthilnathan 697025d0c0 Add inlay hints for IndexSignature (#56580) 2023-11-29 10:51:32 -08:00
Zzzen c250aed310 fix inlay hints for template literal type (#56309) 2023-11-28 13:34:33 -08:00
Sheetal Nandi b6121e400c Replace disk path operations to use fileNames instead of path (#56476)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2023-11-27 22:21:29 -08:00
Maria José Solano 2f2d2f2bb9 Inlay hints for ThisType nodes (#56564) 2023-11-27 16:57:01 -08:00
Jake Bailey 0aa2c48ee3 Make our dts files compile when exactOptionalPropertyTypes is enabled downstream (#56489) 2023-11-21 11:40:31 -08:00
Sheetal Nandi 0abfb521d5 Handle file name casing when deduplicating results from the project (#56438) 2023-11-20 16:30:56 -08:00
Sg ffc21e5752 Skip invalid completion check immediately after newline (#55061)
Co-authored-by: Isabel Duan <isabelduan@microsoft.com>
2023-11-20 13:18:06 -08:00
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 d1d14e67d0 Fixed a crash when getting document highlights on out variance annotation (#56408) 2023-11-15 11:34:59 -08:00
Mateusz Burzyński 70becf9af9 Autocomplete from keyword in export declarations (#56029) 2023-11-13 12:52:48 -08:00
Sheetal Nandi ca7a3af5e6 Always update LS state through Project (#56356)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-11-10 12:45:39 -08:00
Andrew Branch 649e614496 Recognize more "cannot find name" error code variations for codefixes (#56335) 2023-11-07 11:42:06 -08: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
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
Andrew Branch 0ee2db33ca Fix declaration emit in --moduleResolution bundler using wrong exports conditions (#56265) 2023-10-30 15:39:57 -07: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 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
Ron Buckton 79da510066 Fix incorrect flags in modifierFlagsCache (#56198) 2023-10-25 18:24:53 -04:00
Ron Buckton e5e7cbba79 Expose 'updateModifiers' in public NodeFactory API (#56194) 2023-10-23 20:37:57 -04:00
Andrew Branch aef4e468d9 Add user preference for preferring type-only auto imports (#56090) 2023-10-20 14:52:18 -07:00
Jake Bailey d3c7d96d2c Remove old references to deprecated assertion node types (#56073) 2023-10-11 12:54:27 -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
Oleksandr T 6ec5547823 fix(55945): Inlay hints don't work for bigint literals (#55947) 2023-10-04 10:52:01 -07:00
Andrew Branch 248488aa06 Prefer local module specifier over relative node_modules ones in auto-import, even when it reaches into a monorepo package (#55969) 2023-10-03 14:10:06 -07:00
Oleksandr T f2805dc88b fix(55946): Errant case causes crash in switch/case snippet completions (#55949)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-10-02 21:46:48 -07:00
Oleksandr T c640c5de0a fix(55937): 'Infer function return type' offered in preceding trivia (#55938) 2023-10-02 16:34:46 -07:00
Maria José Solano 952526c5c9 Show interactive inlay hints in parameter types (#55918) 2023-09-29 13:45:57 -07:00
Jake Bailey 9208239759 Remove shims.ts and related infra (#55868) 2023-09-28 13:54:47 -07:00
Oleksandr T 2e9e9a292c feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Ron Buckton d7b4cee7df Include source node inferences in string literal completions (#54121)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-25 18:29:29 -04:00
Oleksandr T e743d070ea fix(55404): Remove braces from arrow function" generates invalid code in JavaScript (#55429)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-09-22 16:14:06 -07:00
Oleksandr T ec2acc9f8a fix(55823) - Remove Braces From Arrow function fails when using satisfies (#55831) 2023-09-22 11:32:56 -07:00
Sheetal Nandi 83f02a4b7e Picking resolutions of module for sourceFile as method (#55818) 2023-09-22 10:24:37 -07:00
Jake Bailey a3c5d5d37e Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
Mateusz Burzyński 56accb08a1 Fixed string completions that require escaping (#55118) 2023-09-21 15:05:34 -07:00
Jake Bailey 45a05f3475 Support converting string literals to templates outside of concatenation (#54647) 2023-09-21 11:16:26 -07:00
Sheetal Nandi ec1414f627 Source files not affected by all module resolution options (#55790) 2023-09-20 16:45:32 -07:00
Maria José Solano 0b82e1a03f Interactive type inlay hints (#55141) 2023-09-19 22:50:11 -07:00
Oleksandr T 79736eff89 fix(55258): JSDoc render with @param Object properties (#55264) 2023-09-19 14:00:32 -07:00
Mateusz Burzyński 0464e91c8b Fixed an issue with type-only import promoting (#55365) 2023-09-18 12:38:00 -07:00
Jake Bailey 9cbcf010ce Ensure generated property names for methods named "new" are quoted (#55750)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
2023-09-15 10:25:10 -07:00
Oleksandr T 05fdb5f671 fix(54266): Navtree doesn't return computed class members (#54271) 2023-09-13 14:50:48 -07:00