-
Notifications
You must be signed in to change notification settings - Fork 311
Open
Labels
featureNew feature or requestNew feature or requestsnippetsBuilt-in provider and library for snippetsBuilt-in provider and library for snippetssourcesSpecific source provider or the system as a wholeSpecific source provider or the system as a whole
Description
this really only matters for filetypes with multiple embedded languages,
e.g.:
- svelte
- vue
- angular
- react jsx / tsx
- glimmer gjs / gts
- etc
Namely,
if an outer language is javascript, and an inner language is CSS,
I don't want javascript snippets being suggested in the CSS block (such as <style></style> (in jsx/gjs/svelte/etc)
likewise, is there a way to configure the snippets package.json such that it only allows snippets based on the combination of the language and file type?
for example: we don't want to suggest embedded-language snippets when the filetype does not support embedded languages (such as plain js and plain ts -- no embedded languages allowed usually (unless via template literal strings))
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestsnippetsBuilt-in provider and library for snippetsBuilt-in provider and library for snippetssourcesSpecific source provider or the system as a wholeSpecific source provider or the system as a whole