-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Codefix: convert const to let #22473
Comments
Can I take this one? |
Go for it! |
@MagWeaver any news from this? |
@DanielRosenwasser Can I please take over if it's possible? |
Go for it. |
@mhegazy Can I please get some help getting started? Which files should I be looking at? |
Quick fixes are attached to diagnostics. in this case You can take a look at https://github.com/Microsoft/TypeScript/blob/master/src/services/codefixes/fixAwaitInSyncFunction.ts and https://github.com/Microsoft/TypeScript/blob/master/src/services/codefixes/fixSpelling.ts for a guide to how a quick fix can be implemented. Also you will need to add handling for the |
@Fatehsandhu Still working on this? If not I'd like to take a shot at it :) |
Hi, |
@suhailsinghbains I'm currently working on this one and am close to completing so your time may be better spent on another one. I'll let you know if anything changes however. |
Sure @muradkhan101 |
TypeScript Version: 2.8.0-dev.20180308
Search Terms:
const let codefix
Code
Expected behavior:
Error with codefix offered at 1 to convert the declaration from
const
tolet
Actual behavior:
Just an error, no codefix
Related Issues:
The exact opposite of #13133
The text was updated successfully, but these errors were encountered: