Skip to content

rafce snippet bug regarding file names #298

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
sanberkzulfikar opened this issue Jun 19, 2023 · 0 comments
Open

rafce snippet bug regarding file names #298

sanberkzulfikar opened this issue Jun 19, 2023 · 0 comments

Comments

@sanberkzulfikar
Copy link

sanberkzulfikar commented Jun 19, 2023

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

1 participant