{"action":"created","issue":{"url":"https://api.github.com/repos/thomaswilburn/Caret/issues/327","labels_url":"https://api.github.com/repos/thomaswilburn/Caret/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/thomaswilburn/Caret/issues/327/comments","events_url":"https://api.github.com/repos/thomaswilburn/Caret/issues/327/events","html_url":"https://github.com/thomaswilburn/Caret/issues/327","id":54490005,"number":327,"title":"Saving File","user":{"login":"cbaldwinweb","id":10465592,"avatar_url":"https://avatars.githubusercontent.com/u/10465592?v=3","gravatar_id":"","url":"https://api.github.com/users/cbaldwinweb","html_url":"https://github.com/cbaldwinweb","followers_url":"https://api.github.com/users/cbaldwinweb/followers","following_url":"https://api.github.com/users/cbaldwinweb/following{/other_user}","gists_url":"https://api.github.com/users/cbaldwinweb/gists{/gist_id}","starred_url":"https://api.github.com/users/cbaldwinweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cbaldwinweb/subscriptions","organizations_url":"https://api.github.com/users/cbaldwinweb/orgs","repos_url":"https://api.github.com/users/cbaldwinweb/repos","events_url":"https://api.github.com/users/cbaldwinweb/events{/privacy}","received_events_url":"https://api.github.com/users/cbaldwinweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-15T19:06:32Z","updated_at":"2015-01-15T19:48:30Z","closed_at":null,"body":"When changing the language to say JavaScript and then clicking save it automatically saves it as an undefined file type. I think if the user changes the language in the editor that it should add the extension to the file name when saving."},"comment":{"url":"https://api.github.com/repos/thomaswilburn/Caret/issues/comments/70149199","html_url":"https://github.com/thomaswilburn/Caret/issues/327#issuecomment-70149199","issue_url":"https://api.github.com/repos/thomaswilburn/Caret/issues/327","id":70149199,"user":{"login":"thomaswilburn","id":881329,"avatar_url":"https://avatars.githubusercontent.com/u/881329?v=3","gravatar_id":"","url":"https://api.github.com/users/thomaswilburn","html_url":"https://github.com/thomaswilburn","followers_url":"https://api.github.com/users/thomaswilburn/followers","following_url":"https://api.github.com/users/thomaswilburn/following{/other_user}","gists_url":"https://api.github.com/users/thomaswilburn/gists{/gist_id}","starred_url":"https://api.github.com/users/thomaswilburn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomaswilburn/subscriptions","organizations_url":"https://api.github.com/users/thomaswilburn/orgs","repos_url":"https://api.github.com/users/thomaswilburn/repos","events_url":"https://api.github.com/users/thomaswilburn/events{/privacy}","received_events_url":"https://api.github.com/users/thomaswilburn/received_events","type":"User","site_admin":false},"created_at":"2015-01-15T19:48:30Z","updated_at":"2015-01-15T19:48:30Z","body":"Yes, we can suggest a name, but what we can't do is add the extension if someone takes that name and just writes the first part of the filename. I don't know if this is what you meant.\r\n\r\n`self.syntaxMode` will not give you the extension, it will match the Ace syntax highlighting modes. However, the ace.json file can be loaded from settings, and used to look up the extensions that match that syntax mode. "}}