p42ai / js-assistant

120+ refactorings and code-assists for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=p42ai.refactor
MIT License
119 stars 7 forks source link

convert to const in for-of loops #54

Closed j4k0xb closed 1 year ago

j4k0xb commented 1 year ago

should also work for

for (let item of array) {
  console.log(item);
}

->

for (const item of array) {
  console.log(item);
}
lgrammel commented 1 year ago

@j4k0xb Thanks for the bug report! I've just released v1.150.3, which fixes this bug. Please re-open this issue if you still encounter the issue in v1.150.3 or higher.