snipsnap icon indicating copy to clipboard operation
snipsnap copied to clipboard

Snippets that are supposed to work within jsx need a jsx scope

Open KnifeFed opened this issue 3 years ago • 0 comments

For example, gatsby-link doesn't work inside jsx because it doesn't have that scope. I think jsx should be the only scope for such snippets, i.e.:

 "gatsby-link": {
    "scope": "jsx",
    "prefix": ["gatsby link"],
    "body": ["<Link to=\"${1:/blog}\">${2:Text}</Link>"]
  },

KnifeFed avatar Oct 13 '21 14:10 KnifeFed