p42ai / js-assistant

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

convert to const in for-of loops #54

Closed j4k0xb closed 2 years ago

j4k0xb commented 2 years ago

should also work for

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

->

for (const item of array) {
  console.log(item);
}
lgrammel commented 2 years 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.