r5n-labs / vscode-react-javascript-snippets

Extension for React/Javascript snippets with search supporting ES7+ and babel features
MIT License
1.75k stars 441 forks source link

rafce snippet bug regarding file names #298

Open sanberkzulfikar opened 1 year ago

sanberkzulfikar commented 1 year ago

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