planbcoding/vscode-react-refactor

Command 'Extract to Component file' resulted in an error (command 'extension.react-refactor.extractToFile' not found)

Closed this issue · 4 comments

I'm getting this error when I try to use the extension.
Plus, I don't see the additional commands in the light bulb menu.
I tried to uninstall and reinstall the extension but it didn't help.

I don't get any errors, but instead of creating file, Extract to Component file command create class component in current file.

Screenshots

Снимок экрана 2020-09-28 в 15 41 49
Снимок экрана 2020-09-28 в 15 42 18

I just installed this and get the same error:

image

Here's my VSCode version info:

image

I don't get any errors, but instead of creating file, Extract to Component file command create class component in current file.

Screenshots
Снимок экрана 2020-09-28 в 15 41 49
Снимок экрана 2020-09-28 в 15 42 18

Yep, same here (awesome extension btw! 🙌)

Thanks guys for reporting. Unfortunatelly VSCode some API changes related to Code action executing and it seems tricky to make it work again. So for now it's cleaner to remove the Extract to File Code action.