Closed aghArdeshir closed 1 year ago
Hi @aghArdeshir,
thanks for the bug report. It looks like the refactoring "Extract to function in module scope" comes with VS Code (built-in), not P42. P42 refactorings have a '[P42]' at the end of the action label in the context menu. If this is a P42 refactoring, please re-open the issue.
Best, Lars
Oops! :face_with_head_bandage: Why I didn't notice it!
Haha it's pretty easy to miss - you're not the first one.
Hi. When I refactor a callback in my JSX, which does something rather complicated, one of my comments are removed.
Code example:
Try refactoring the whole callback into a function in module scope.
One:
Two:
Three:
As you see one of my comments are removed.
Thanks.