-
Notifications
You must be signed in to change notification settings - Fork 28.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow scoped snippet #15287
Comments
This can be implemented from an extension that registers a completion item provider that is smart enough to suggest certain snippets only in certain locations. |
@alexandrudima I see no generic way for an extension to do this until #580 is resolved. |
@alexandrudima Well, now the user who wants to make a snippet only available to a certain part of his code has to:
That's a lot of work and the extension will be slow. |
@octref It is not in our best interest to further leak TM scopes in APIs or build more and more features on top of TM scopes: We want at one point to be able to colorize using something else that doesn't have the problems and baggage of TM. For example, TM coloring is one our biggest perf detractors. |
OK I'll close this as out-of-scope since I don't see we replacing TM anytime soon. |
Sublime allows snippet for particular scopes: http://docs.sublimetext.info/en/latest/extensibility/snippets.html
This is particularly useful for embedded languages like vue.js:
The text was updated successfully, but these errors were encountered: