[language server] Apply codefix to all files #33195
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Search Terms
Suggestion
I would like to have some way to apply a specific codefix to all files in a directory. For example, convert a bunch of files from CommonJS format to the new ES6 module format using the codefix here.
Use Cases
I have a few hundred files in CommonJS module format that I want to convert to ES6 module syntax (export/import instead of exports/require).
Currently, my text editor (vscode) shows after some delay three dots at the top of the current file which, when hovered over with the mouse shows after a few more seconds delay a "quickFix" button that, when clicked, causes the current file to be converted. To convert all of my files with this method would take hours of tedious clicking.
I want some method of automating this process.
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: