Commit Graph

6689 Commits

Author SHA1 Message Date
Oleksandr T
140fa7e5d1 feat(51870): Add a Quick Fix to add an additional parameter to a method or function (#56411) 2024-01-19 09:35:33 -08:00
Oleksandr T
55153b0274 feat(57028): Support inlining variables that are used in object literal shorthand (#57051) 2024-01-18 11:27:13 -08:00
Jake Bailey
4f7da16103 Fix unnecessary non-null assertions caught by newer ts-eslint (#57070)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2024-01-16 11:21:45 -08:00
Andrew Branch
a673958ccc Check autoImportExcludePatterns against symlink paths (#57033) 2024-01-16 09:35:26 -08:00
Jake Bailey
67b644e543 Export internal functions needed by dtsBundler.mjs (#52941) 2024-01-11 11:15:58 -08:00
Sviatoslav Zaytsev
1717826b6e fix(51225): Go-to-definition on case or default should jump to the containing switch statement if available. (#51236)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-01-11 11:14:03 -08:00
Oleksandr T
72d497352f fix(55994): Type-check Import Attributes in static imports (#56034) 2024-01-10 15:35:04 -08:00
Isabel Duan
780097856a Organize type imports (#55269) 2024-01-09 16:29:16 -08:00
Babak K. Shandiz
b2c6a56e38 Fix "Extract to type alias" not available at end of span (#56467)
Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
2024-01-05 09:52:26 -08:00
Mateusz Burzyński
02f9ddf55d Fixed an issue with property type display when contextual type is a union (#56318) 2024-01-04 09:29:15 -08:00
Oleksandr T
9e0e9d35b9 fix(56475): Hyperlink in quick info generated by @link jumps to import statement for named or default imports, not symbol definition (#56802) 2024-01-02 14:44:09 -08:00
Oleksandr T
5d3bc98efb fix(56756): using quick fix to add missing enum member will add extra empty lines (#56788) 2024-01-02 14:08:23 -08:00
Oleksandr T
a50f67d347 fix(56733): Auto fix "add missing properties" of enums does not correct namespace of enum (#56739) 2024-01-02 11:25:44 -08:00
Oleksandr T
4dbb267b2d fix(56706): "Show call hierarchy" does not work with arrow methods in a class (#56715) 2024-01-02 09:15:28 -08:00
Emma Hamilton
fbcdb8cf4f Add auto-import for the package.json imports field (#55015)
Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2023-12-21 09:48:03 -08:00
Oleksandr T
2c134db31d fix(56699): [Formatting] Missing space after implements / extends generic (#56707) 2023-12-15 09:05:25 -08:00
Oleksandr T
22bee05d8f fix(56665): Improve Outline for template literals (#56667) 2023-12-15 09:04:07 -08:00
Oleksandr T
d84be8ed2d fix(56602): JSDoc render with @param Sub-object properties (#56657) 2023-12-13 13:02:14 -08:00
Oleksandr T
0b03c80260 fix(56127): TypeScript "Move to File" refactor causes self import (#56294) 2023-12-13 11:08:14 -08:00
Mateusz Burzyński
ca9cb7c5c2 Provide type-only completions at default type argument positions (#56534) 2023-12-11 15:00:38 -08:00
hanzooo
96e7af47fd Check auto-import completion for spread assignment (#56247)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2023-12-08 10:59:08 -08:00
Isabel Duan
8dfbfcb058 fix54492: allow editor to check for original file extension for rename (#56680) 2023-12-08 09:32:52 -08:00
Pranav Senthilnathan
5b7344ef52 Address comments on IndexSignature inlay hint PR (#56613) 2023-12-07 09:57:23 -08:00
Jake Bailey
1d7c0c977a Try and deal with CodeQL reports on replace("*", ...) (#56607) 2023-12-05 13:58:56 -08:00
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