Commit Graph

1119 Commits

Author SHA1 Message Date
Andrew Branch
a5eec2485f Simplify handling of node:-prefixed modules in auto-imports (#59702) 2024-08-21 16:43:21 -07:00
Oleksandr T.
f850298f70 fix(59558): Implement Interface Quick Fix generates duplicate declarations (#59563) 2024-08-16 15:17:58 -07:00
Andrew Branch
bcb1545aa3 Allow existing imports in file to supersede package.json filter (#59604) 2024-08-15 15:00:31 -07:00
Jake Bailey
195203e971 Add regex eslint plugin, fix lints (#59371) 2024-08-13 14:16:53 -07:00
Oleksandr T.
7049af5f4f fix(58166): Class parameter property with initializer before required property emits non-nullable parameter for declaration emit (#58177) 2024-08-12 15:42:09 -07:00
Armando Aguirre
5f79e16d33 Refactored node builder flags and tests (#59440)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-08 13:19:24 -07:00
Jake Bailey
5e9e6ad295 Fix accidental relative imports from non namespace barrels (#59544) 2024-08-08 09:38:10 -07:00
Mateusz Burzyński
451388cfd5 Fixed quick fixes for inferred type predicates (#58958) 2024-07-26 10:21:18 -07:00
Oleksandr T.
7319968e90 fix(59116): Codefix add missing function declaration inserts function in wrong file (#59213) 2024-07-24 19:45:52 -07:00
Jake Bailey
3f6f3164d6 Remove stableSort, rename sort to toSorted (#55728) 2024-07-23 18:17:07 -07:00
Ron Buckton
6f530cc4ce Add TReturn/TNext to Iterable et al (#58243) 2024-07-19 13:14:00 -04:00
Mateusz Burzyński
45062406e4 Fixed crash on authored import type nodes when serializing for declarations (#59160) 2024-07-18 08:41:47 +09:00
Andrew Branch
a9139bfdfe Only look up package.json type if module is node16/nodenext or file is in node_modules (#58825)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-07-17 09:23:51 -07:00
Oleksandr T.
bf39eccee6 fix(59304): Convert to ESM uses template strings instead of string literals (#59306) 2024-07-16 14:02:39 -07:00
Lars Kappert
752135eb40 Remove unused exports & dead code (using Knip) (#56817)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-06-27 14:24:01 -07:00
Jake Bailey
ef079c9dd3 Update to TS 5.5.2 (#58947) 2024-06-20 12:34:07 -07:00
Isabel Duan
f999951015 fix55816: exclude files with re-exports if excluded by preferences.autoImportFileExcludePatterns (#58537)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-06-18 14:03:18 -07:00
Andrew Branch
56289733a4 Revert #57896 (#58857) 2024-06-13 16:40:23 -07:00
Andrew Branch
1948e92e3a [DO NOT MERGE UNTIL 5.6] Fix re-exported defaults in ExportInfoMap (#58837) 2024-06-12 15:43:20 -07:00
Jake Bailey
64fa3c7a6b Check cancellation token in isolatedDeclarations codefix (#58755) 2024-06-03 12:15:02 -07:00
Armando Aguirre
ef514af267 Added NoTruncation flag to completions (#58719)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-05-31 16:26:19 -07:00
Ben Lickly
fc42002a10 Improve the performance of isolatedDeclarations quickfix (#58722) 2024-05-31 09:04:07 -07:00
Titian Cernicova-Dragomir
8537bb72eb Error if type node uses inaccessible type in isolated declarations (#58620) 2024-05-22 15:51:11 -07:00
Wesley Wigham
b682ed4504 Lock down computed names in object literals and classes under --isolatedDeclarations (#58596) 2024-05-22 12:28:07 -07:00
Andrew Branch
84ab39d7f0 Respect importModuleSpecifierPreference in sort order between fixes for the same symbol from different files (#58597) 2024-05-21 08:36:53 -07:00
Sheetal Nandi
524456ff5a Fix incorrect usage of getResolvedTypeReferenceDirectives and some refactoring (#58527) 2024-05-13 16:03:40 -07:00
Oleksandr T
017c1e0e64 fix(55765): Implement Interface Code Action is not available under certain circumstances (#55767) 2024-05-10 14:46:51 -07:00
navya9singh
be8fb98cf1 Implementing copy/paste (#57262) 2024-05-08 16:07:51 -07:00
Andrew Branch
bc14459f3b Refactor default export info name gathering (#58460) 2024-05-08 09:33:17 -07:00
Jake Bailey
16beff101a Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
Hana Joo
33b156147b Add a code fixer for --isolatedDeclarations errors (#58260)
Co-authored-by: Andrew Branch <andrewbranch@users.noreply.github.com>
2024-04-30 15:25:51 -07:00
Oleksandr T
dc316afea4 fix(58360): Cheese being inserted on TypeScript Quick Fix (#58365) 2024-04-29 15:29:46 -07:00
navya9singh
ce4862c267 Updating move to file (#58257) 2024-04-25 15:32:18 -07:00
Oleksandr T
93451e8dd9 fix(57497): "Remove unused declaration" does not work on overloaded function declarations (#57517) 2024-04-19 11:28:00 -07:00
Andrew Branch
585a9af830 Respect package.json "type" and module-format-specific file extensions in more module modes (#57896) 2024-04-12 12:47:09 -07:00
Andrew Branch
5c55ce1ba2 Expand auto-import API to work on non-existent files and symbols (#58093) 2024-04-09 11:24:15 -07:00
Oleksandr T
1ab2a8d83e fix(57761): Invalid verbatimModuleSyntax quick fix offered when also reexporting a value (#57769) 2024-04-03 16:06:44 -07:00
Jake Bailey
4cedfe40b0 Update dprint, don't force multiline imports for imports of single name (#58038) 2024-04-02 10:58:16 -07:00
Oleksandr T
2de69b09c5 feat(41825): JSDoc equivalent of import * (#57207) 2024-03-26 13:52:43 -07:00
Isabel Duan
0a671aa393 Change detection to detection by diff in organizeImports (#57267) 2024-03-15 16:07:39 -07:00
Ron Buckton
5e8f900afa Report grammar errors for invalid decorator grammar (#57749) 2024-03-13 14:50:04 -04:00
Oleksandr T
c1f0f7cb58 feat(57240): Unimplemented abstract methods result in verbose, repetitive message (#57291) 2024-03-12 15:56:09 -07:00
Jake Bailey
26df0cb23e Remove 5.5 deprecated compiler options (#57527)
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-02-28 14:35:39 -08:00
hborchardt
da5f0fe9d4 Add missing members to array of objects in quickfix (#57143) 2024-02-15 11:49:38 -08:00
Andrew Branch
76cf0928f2 Expand anti-parent-barrel auto-import heuristic to all moduleResolution modes (#57342) 2024-02-08 11:12:35 -08:00
Oleksandr T
10a3872de4 fix(57326): 'resolves to a type-only declaration and must be imported using a type-only import' doesn't have a quick fix (#57327) 2024-02-07 15:17:29 -08:00
Abraham Guo
3c9aea3ed1 enable @typescript-eslint/no-unused-vars (#57123) 2024-01-29 11:31:51 -08:00
Andrew Branch
6cb6fc94ae Add --module preserve, support require in --moduleResolution bundler (#56785) 2024-01-19 12:03:24 -08:00
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
Jake Bailey
67b644e543 Export internal functions needed by dtsBundler.mjs (#52941) 2024-01-11 11:15:58 -08:00