r5n-labs/vscode-react-javascript-snippets

rafce snippet bug regarding file names

sanberkzulfikar opened this issue · 0 comments

I've encountered a bug.

To produce it; create a new file on the project directory via VSCode, for example "Navbar.tsx", then type "rafce" and press Tab to generate the component starter code snippet. It creates a function component snippet with the name "Navbar", as expected.
Now, if you rename the file, making it "NavBar.tsx" for example, then delete the snippet and re-generate, seems like rafce doesn't see the change and it still creates the component's name as "Navbar", not "NavBar".

Saving the file won't change the occurrence.

I would be happy to provide more details if needed.

System:
VSCode@Latest, Extension@Latest, macOS Ventura@Latest