Commit Graph
1128 Commits
Author SHA1 Message Date
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
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
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 AguirreandArmando Aguirre Sepulveda 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 AguirreandArmando Aguirre Sepulveda 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 BranchandJake Bailey 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 KappertandJake Bailey 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 DuanandAndrew Branch 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 AguirreandArmando Aguirre Sepulveda 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 JooandAndrew Branch 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