{"action":"created","issue":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/433","labels_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/433/comments","events_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/433/events","html_url":"https://github.com/TypeStrong/atom-typescript/issues/433","id":92717350,"number":433,"title":"Snippets don't work in TS files","user":{"login":"helarqjsc","id":1840047,"avatar_url":"https://avatars.githubusercontent.com/u/1840047?v=3","gravatar_id":"","url":"https://api.github.com/users/helarqjsc","html_url":"https://github.com/helarqjsc","followers_url":"https://api.github.com/users/helarqjsc/followers","following_url":"https://api.github.com/users/helarqjsc/following{/other_user}","gists_url":"https://api.github.com/users/helarqjsc/gists{/gist_id}","starred_url":"https://api.github.com/users/helarqjsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helarqjsc/subscriptions","organizations_url":"https://api.github.com/users/helarqjsc/orgs","repos_url":"https://api.github.com/users/helarqjsc/repos","events_url":"https://api.github.com/users/helarqjsc/events{/privacy}","received_events_url":"https://api.github.com/users/helarqjsc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T19:38:11Z","updated_at":"2015-07-03T00:01:40Z","closed_at":"2015-07-03T00:01:40Z","body":"I have the following code in `snipets.cson`:\r\n```\r\n'.source.ts':\r\n  'Console log':\r\n    'prefix': 'cc'\r\n    'body': 'console.log($1);'\r\n```\r\nBut it doesn't work when I type `cc` in any open TypeScript files. How can I fix or troubleshoot it?\r\nAlso, the exact same code works fine in `.source.js`. None of the snippets I tested work in TS."},"comment":{"url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/comments/118197373","html_url":"https://github.com/TypeStrong/atom-typescript/issues/433#issuecomment-118197373","issue_url":"https://api.github.com/repos/TypeStrong/atom-typescript/issues/433","id":118197373,"user":{"login":"basarat","id":874898,"avatar_url":"https://avatars.githubusercontent.com/u/874898?v=3","gravatar_id":"","url":"https://api.github.com/users/basarat","html_url":"https://github.com/basarat","followers_url":"https://api.github.com/users/basarat/followers","following_url":"https://api.github.com/users/basarat/following{/other_user}","gists_url":"https://api.github.com/users/basarat/gists{/gist_id}","starred_url":"https://api.github.com/users/basarat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basarat/subscriptions","organizations_url":"https://api.github.com/users/basarat/orgs","repos_url":"https://api.github.com/users/basarat/repos","events_url":"https://api.github.com/users/basarat/events{/privacy}","received_events_url":"https://api.github.com/users/basarat/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T00:01:40Z","updated_at":"2015-07-03T00:01:40Z","body":"I just tested that and it works:\r\n\r\n\r\n![snippets](https://cloud.githubusercontent.com/assets/874898/8490343/61f8ca18-216a-11e5-8245-cf548b7c8ac8.gif)\r\n\r\nNote that you might need to press `esc` to dismiss autocomplete as I've done in this demo :rose: "}}