Gruntfuggly / auto-snippet

A vscode extension to automatically insert a predefined snippet when a file is created, or an empty file is opened.
Other
14 stars 1 forks source link

Path not matching as expected #14

Closed chrisbward closed 3 years ago

chrisbward commented 3 years ago

Hi! Great tool, just setting up...

"autoSnippet.snippets": [
        { "pattern": "frontend/**/*.tsx", "snippet": "My Component Example },
      ], 

Is my glob causing the issue here? I would expect it to match files within the path, nested.

Gruntfuggly commented 3 years ago

The globs are absolute, so you probably want **/frontend/**/*.tx

chrisbward commented 3 years ago

That was exactly my issue and you beat me to it :))

Well done, tool is bloody brilliant!

Gruntfuggly commented 3 years ago

Glad you're finding it useful! 🙂