r5n-dev / vscode-react-javascript-snippets

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

Fetching Incorrect filename #204

Closed yashrajbothra closed 2 years ago

yashrajbothra commented 2 years ago

Soo I was using react and while using rfc snippet the function name was not matching.

Steps to reproduce

  1. Create new file and name it anything ex :- (Example)
  2. Create rfc using rfc
  3. Now change the filename
  4. Now Delete the code and try again...LOOP...

https://user-images.githubusercontent.com/47683556/148680552-1bdd074f-c9de-472c-baa0-7d457170dad2.mp4

ice-chillios commented 2 years ago

@yashrajbothra snippets are using filename variables directly from VSCode so if it's not working properly, you should open the issue in the editors repo instead. https://code.visualstudio.com/docs/editor/userdefinedsnippets#_variables