tomwhite007 / rename-angular-component

VS Code Extension: Rename Angular Component
https://marketplace.visualstudio.com/items?itemName=tomwhite007.rename-angular-component
Other
30 stars 2 forks source link

I don't see the option to rename when Right Clicking the file or folder, and when doing it manually always get an error #41

Closed NikolaKrstic94 closed 1 year ago

NikolaKrstic94 commented 1 year ago

Describe the bug I get this error whenever I copy&paste the full path of the file and then continue to the 2nd step of actually renaming the file:

The component class file must use the same file naming convention as 'dialog-edit-individual-pending-orders.component.desktop.ts' for this process to run.

To Reproduce F1 in VSCode -> Rename Angular Component -> paste the path of a .ts file that needs renaming -> get the error when trying any rename option, even a single letter change. Expected behavior It should rename the component.

Screenshots or Demo Repo

Desktop (please complete the following information):

tomwhite007 commented 1 year ago

Hi. The instructions state that you must enter the file name stub. In your example this should be dialog-edit-individual-pending-orders. This extension is not designed to recieve file paths for any of it's options.