{"action":"created","issue":{"url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat/issues/7","repository_url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat","labels_url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat/issues/7/comments","events_url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat/issues/7/events","html_url":"https://github.com/akof1314/Sublime-CoolFormat/issues/7","id":148783181,"number":7,"title":"CoolFormat deletes text if syntax does not match any presets.","user":{"login":"Enteleform","id":10906415,"avatar_url":"https://avatars.githubusercontent.com/u/10906415?v=3","gravatar_id":"","url":"https://api.github.com/users/Enteleform","html_url":"https://github.com/Enteleform","followers_url":"https://api.github.com/users/Enteleform/followers","following_url":"https://api.github.com/users/Enteleform/following{/other_user}","gists_url":"https://api.github.com/users/Enteleform/gists{/gist_id}","starred_url":"https://api.github.com/users/Enteleform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enteleform/subscriptions","organizations_url":"https://api.github.com/users/Enteleform/orgs","repos_url":"https://api.github.com/users/Enteleform/repos","events_url":"https://api.github.com/users/Enteleform/events{/privacy}","received_events_url":"https://api.github.com/users/Enteleform/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-15T22:23:46Z","updated_at":"2016-04-27T02:13:11Z","closed_at":null,"body":"If you attempt to run CoolFormat on a file whose syntax does not match any of the supported languages, all text in the document will be deleted.\r\n\r\n&nbsp;\r\nThis can easily be resolved by implementing a simple verification process:\r\n\r\n* `activeSyntax = view.settings().get( \"syntax\" )`\r\n* check the found syntax against an array of valid syntaxes\r\n* return if no matches are found"},"comment":{"url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat/issues/comments/214947509","html_url":"https://github.com/akof1314/Sublime-CoolFormat/issues/7#issuecomment-214947509","issue_url":"https://api.github.com/repos/akof1314/Sublime-CoolFormat/issues/7","id":214947509,"user":{"login":"akof1314","id":2639552,"avatar_url":"https://avatars.githubusercontent.com/u/2639552?v=3","gravatar_id":"","url":"https://api.github.com/users/akof1314","html_url":"https://github.com/akof1314","followers_url":"https://api.github.com/users/akof1314/followers","following_url":"https://api.github.com/users/akof1314/following{/other_user}","gists_url":"https://api.github.com/users/akof1314/gists{/gist_id}","starred_url":"https://api.github.com/users/akof1314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akof1314/subscriptions","organizations_url":"https://api.github.com/users/akof1314/orgs","repos_url":"https://api.github.com/users/akof1314/repos","events_url":"https://api.github.com/users/akof1314/events{/privacy}","received_events_url":"https://api.github.com/users/akof1314/received_events","type":"User","site_admin":false},"created_at":"2016-04-27T02:13:11Z","updated_at":"2016-04-27T02:13:11Z","body":"Fixed it in https://github.com/akof1314/Sublime-CoolFormat/commit/837c83b775de2b0bf83ae278dcfba92505780dcb"}}