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

Issue with Push-Parameter_Into_IIFE #12

Closed chandan192 closed 2 years ago

chandan192 commented 2 years ago

Hi @lgrammel ,

Please refer the below snaps for the issue.

Before refactoring

image

After refactoring

image

check for the index variablei in forEach loop after refactoring.

lgrammel commented 2 years ago

Thanks for the bug report! I'll look into fixing this asap.

lgrammel commented 2 years ago

@chandan192 I just released version 1.78.1, which fixes the bug. Please re-open this issue if you still encounter the bug 1.78.1 or higher. Thanks again for the bug report!