>Not sure if this is possible, but would it be more efficient to move the loading of the snippets feature into an extension and remove the extra JS dependency?
For now there is no code for loading snippets,
there is snippetManager which isn't required from editor and bunch of
`language.snippets` files taken from snipmate
I am too, not sure how to best integrate snippetManager into rest of the ace.
How do you want to use ace snippets? do you need to add snippets
written by users or only the default ones provided by ace?
I want to add ace/ext/snippets.js file
people using require.js will need to use require() to get it
and those using prebuilt version can either include script or call
ace.config.loadModule
When loaded it will add editor.insertSnippet method and will handle
loading of default snippets from ace/snippets folder
Loading languageName.snippets file with xhr isn't always possible
because of cross origin restrictions, so they need to be wrapped in
.js file in some way, (also having js files will allow to add some
language specific logic, many textmate snippets use inline shell code
for that, but i am not sure how useful it would be)
But generally snippets are not tied to any specific format, and can be
used like this too
https://github.com/zefhemel/zed/blob/master/app/settings/mode/javascript.default.json#L41
https://github.com/zefhemel/zed/blob/master/app/js/complete/snippet.js#L4
https://github.com/zefhemel/zed/blob/master/app/js/complete.js