zardoy / vscode-better-snippets

Create most advanced snippets for VSCode in existence
https://marketplace.visualstudio.com/items?itemName=zardoy.better-snippets
MIT License
6 stars 0 forks source link

Default value of `betterSnippets.languageSupesets` setting is empty #25

Closed AgentRBY closed 2 years ago

AgentRBY commented 2 years ago

Hi 👋 I found a couple of issues with when.languages

  1. In the absence of when.languages the snippet does not work anywhere. I would like it to be like the original snippets - that they would work everywhere, if the language is not specified

Code_-_Insiders_CmmW0rJbCj

  1. The test snippets say you can use ["react"] and it will be an alias for ["javascriptreact", "typescriptreact"], but it doesn't work

Code_-_Insiders_bXsC2EpTKw

  1. Also Js specified in built-in snippets does not work (That's why these built-in snippets don't work at all)

Code_-_Insiders_EIN2YTzhS2

zardoy commented 2 years ago

Hi! Thank you so much for the interest! You're right, language supersets should work as expected, however as I see from GIFs you actually don't get languages supersets suggestions while editing when.languages, there is something wrong with betterSnippets.languageSupesets setting (seems to be empty). This is really important, so I'll look at this when I wake up!

zardoy commented 2 years ago

In the absence of when.languages the snippet does not work anywhere. I would like it to be like the original snippets - that they would work everywhere, if the language is not specified

Probably makes sense, I think you can use ["*"] as value for now.