-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snippets work sporadically. #84
Comments
@SaifuddinSaifee the same happens to me |
@SaifuddinSaifee @juanjavier1001 and to me. |
I also am experiencing this issue. |
I believe it is related to the change "JavaScript React language label is now JavaScript JSX". The JavaScript React language mode has been renamed to JavaScript JSX to reflect that JSX syntax is used by more than just React. TypeScript React has also been renamed to TypeScript JSX. From what I see in the images, it works when the file has the .js extension and stops working with files with the .jsx extension. Please @SaifuddinSaifee confirm us |
Hey folks, this may sound a bit weird, but ever since I posted this issue on GitHub, the snippets are now working perfectly fine, and surprisingly they work for both .js as well as for .jsx. But I'd like you to know that I haven't changed any of the settings (as of now). But from my previous tests, I can confirm that when the snippets decide not to work, they neither work for .js file nor for .jsx file. |
Until we actually come up with a solution, I have found a workaround. Steps taken in the above video:
And Voila! now you can trigger snippets whenever and wherever you want, here you'll find every snippet that exists in your environment. All you have to do is now search for that snippet and hit enter. Do let me know if this works for you, or if you encounter any problem. |
@SaifuddinSaifee works for me for now, thanks! I can confirm that it either works or doesn't work at all, no matter if .js or .jsx. |
@Dotolox, I am glad it works for you now! |
Hey folks! I m still facing this issue where I can't see the snippent. I m currently on version 1.2.7
![image](https://user-images.githubusercontent.com/18860009/216916110-e93bbbd9-700e-40b9-8feb-af32fce10a9a.png)
But if I declare a variable of any kind, it works just fine, but it becomes quite pointless at that moment:
![image](https://user-images.githubusercontent.com/18860009/216917714-c765cd27-68d3-4c46-aba2-5a61dd02bc4b.png)
Here's a clip that can explain this to you better:
![Simple React Snippets_Issue](https://user-images.githubusercontent.com/18860009/216918888-6f9336ab-b3cd-4690-a56f-93409c3273a7.gif)
Here are my file associations from my user settings:
![image](https://user-images.githubusercontent.com/18860009/216916694-93e922fa-41f2-40ec-9da5-990265e36f5a.png)
Thanks!
The text was updated successfully, but these errors were encountered: