Chakroun-Anas / turbo-console-log

588 stars 140 forks source link

[BUG?] Problem with variable with "function call with arrow function argument" as value #210

Closed angelhdzmultimedia closed 1 year ago

angelhdzmultimedia commented 1 year ago

Expected Behavior

Clicking the variable user const user = users.find(item => item.email === email) Should add a log in the next line.

Actual Behavior

The arrow function gets expanded, and the log is inserted inside its body. A workaround is to select the variable along with the empty space next to it.

https://user-images.githubusercontent.com/10191085/231728103-f43c2f85-58c5-4967-9834-2b99daf16b2d.mp4

Chakroun-Anas commented 1 year ago

Hello,

Thank you for reporting the issue, will check this soon and get back to you.

Chakroun-Anas commented 1 year ago

Hello @angelhdzmultimedia ,

I just pushed a new version v2.9.2 that deals with this, would you please test it and get back to me so that we can close this issue?

Thx.

angelhdzmultimedia commented 1 year ago

You are on fire! 🔥🤯🤝👏🎉

It works good. Thank you. This extension really improves DX and saves us time!

Next week I'm going to take some time to deliberatedly play with it to find more possible bugs and report them.