Skip to content

How to get the name of the codefix from getSupportedCodeFixes? #61679

Closed as not planned
@jon9090

Description

@jon9090

Acknowledgement

  • I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.

Comment

I run console.log(ts.getSupportedCodeFixes())); to get all possible TypeScript fixes, but it returns an array of codes.

['2352', '1375', '2853', '1431', '2345', '2322', '2678', '2356', '2362', '2363', '2736', '2365', '2367', '2801', '2461', '2495', '2802', '2549', '2548', '2488', '2504', '2339', '2349', '2351', '2304', '18004', '2612', '1329', '1541', '1542', '7051', '2412', '2375', '2379', '80004', '80002', '80006', '80001', '2713', '1205', '1484', '1485', '80009', '2690', '2420', '2720', '2552', '2663', '2662', '2503', '2686', '2693', '1361', '2581', '2583', '2584', '2593', '2311', '2592', '2582', '2580', '2591', '2833', '2874', '2719', '2530', '2603', '2344', '4113', '4112', '4116', '4114', '4115', '4119', '4121', '4120', '4122', '4111', '2683', '2459', '5086', '5087', '2551', '2568', '2570', '2724', '4117', '4123', '2769', '2355', '2741', '2739', '2740', '2348', '2554', '2307', '7016', '2875', '2515', '2654', …]

How can I tell what each code does?

Metadata

Metadata

Assignees

No one assigned

    Labels

    QuestionAn issue which isn't directly actionable in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions