vscode-react-javascript-snippets icon indicating copy to clipboard operation
vscode-react-javascript-snippets copied to clipboard

rafce snippet bug regarding file names

Open sanberkzulfikar opened this issue 2 years ago • 0 comments
trafficstars

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

sanberkzulfikar avatar Jun 19 '23 02:06 sanberkzulfikar