vscode-twig-language icon indicating copy to clipboard operation
vscode-twig-language copied to clipboard

Disable Craft CMS snippets

Open grig0ry opened this issue 7 years ago • 2 comments

It would be nice to add an Disable Craft CMS snippets option.

grig0ry avatar Oct 17 '18 02:10 grig0ry

Yes, it would be great if this extension was not opinionated.

ericmorand avatar May 17 '19 22:05 ericmorand

Hey @ericmorand, I 100% understand that it is called "Twig language" and therefore should be less specific to Craft or Symfony for example. Would you envision that I should remove the convenience features of having Craft specific snippets from the extensions or should there be a "craftSnippets" configuration in the settings to disable these features?

Looking through the VS Code documentation and the roadblock I hit was that the way to include snippets is relatively unconfigurable and the alternative is needlessly complex. Here is the current way to include snippets where I'm unable to enable/disable with settings:

"snippets": [
            {
                "language": "twig",
                "path": "./src/snippets/snippets.json"
            }
],

Let me know your thoughts

mblode avatar May 17 '19 22:05 mblode