Commit Graph

1140 Commits

Author SHA1 Message Date
Ben Lickly
3f416e0f52 Fix quick fix for isolatedDeclarations to keep trailing unknown in generics (#61227) 2025-02-19 17:28:50 -08:00
Mateusz Burzyński
8da951cbb6 Fixed "Delete all unused declarations" to delete self-referential functions (#60888) 2025-01-17 22:11:41 -08:00
Andrew Branch
f69580f821 Add --module node18 (#60722) 2024-12-13 10:16:23 -08:00
Ryan Cavanaugh
4105134626 Include type-meaning 'extends' clause in auto-import fix list (#59853) 2024-12-04 13:22:25 -08:00
Ben Kraft
c043944b14 Let isolated declarations fixer add toplevel imports more (#60267) 2024-11-13 09:04:51 -08:00
Oleksandr T.
ef802b1e4d feat(60312): Add missing properties for satisfies (#60314) 2024-11-08 09:48:13 -08:00
Isabel Duan
3e6171833e fix autoimports crash: generate namespace and other module symbol imports (#60333) 2024-10-31 17:03:12 -07:00
Mateusz Burzyński
e4dc78ab8c Fixed crash on class member completions with auto imports from merged ambient modules (#60340) 2024-10-31 13:47:38 -07:00
Mateusz Burzyński
6a90111d05 Fixed "add missing properties" codefix for positions with nullable contextual types (#60328) 2024-10-23 11:31:37 -07:00
Andrew Branch
b8e4ed8aeb Fix --showConfig to show transitively implied options that vary from the default config (#60240) 2024-10-16 11:14:44 -07:00
Oleksandr T.
e99e6e2e87 fix(60186): Quick fix "add missing properties" fails with enums from other module (#60191) 2024-10-14 11:30:34 -07:00
Isabel Duan
aeb74cc721 moveToNewFile: fix quotes for module specifiers (#60203) 2024-10-14 10:24:49 -07:00
Joost Koehoorn
44331b9fa3 Fix grammar issue in TS9025 diagnostic message (#60136) 2024-10-07 11:12:47 -07:00
Titian Cernicova-Dragomir
476e9ee201 Extract node type printer (#59282) 2024-09-30 09:19:42 -07:00
Daniel Rosenwasser
278f260d0d Specialize the message on JSX tags looking for the JSX factory namespace (#58870) 2024-09-24 11:52:44 -07:00
Ben Lickly
8230bc66a7 Drop unnecessary type arguments in the isolated declarations quick fix (#59665)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2024-09-16 10:35:50 -07:00
Isabel Duan
52eaa7b02f Enable --isolatedDeclarations on TS codebase (#59635)
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
Co-authored-by: Andrew Branch <andrew@wheream.io>
2024-09-15 18:10:52 -07:00
Isabel Duan
89e004f632 add support for autoimports/moveToFile to generate aliased named imports (#59885) 2024-09-10 15:38:37 -07:00
Armando Aguirre
6260f7ab78 Added typeToTypeNode with truncation (#59332)
Co-authored-by: Armando Aguirre Sepulveda <araguir@microsoft.com>
2024-08-30 14:16:18 -07:00
Andrew Branch
a86b5e2b01 Fix error message for type-only import of ES module from CJS (#59711) 2024-08-23 12:05:40 -07:00
Oleksandr T.
3abe069fd2 fix(59649): ts Move to a new file doesn't respect importModuleSpecifier setting (#59670) 2024-08-22 16:46:28 -07:00
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