Snippets working just in .js files
scherman opened this issue · 2 comments
scherman commented
As the title says, it's happening to me that i can use the snippets just in files which has ".js" extension. But using TypeScript i want to put the snippets in ".ts" files instead of ".js".
Do you know how to fix this?
evanplaice commented
Oh... right. I guess that'll only work for the .5% of users like me who use use angular2 + ES6. The snippets are designed to work with both TS and ES6 (ie with decorators/annotations enabled via Babel/Traceur).
To add Typescript support, the snippets/completions scope needs to be modified to include source.ts
.
Source:
Feel free to submit a PR with the fix, otherwise I'll get to it soon.
evanplaice commented