{"action":"created","issue":{"url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/issues/4","repository_url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext","labels_url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/issues/4/comments","events_url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/issues/4/events","html_url":"https://github.com/brpaz/vscode-file-templates-ext/issues/4","id":181453250,"number":4,"title":"Create template from file fails","user":{"login":"JoBrad","id":847746,"avatar_url":"https://avatars.githubusercontent.com/u/847746?v=3","gravatar_id":"","url":"https://api.github.com/users/JoBrad","html_url":"https://github.com/JoBrad","followers_url":"https://api.github.com/users/JoBrad/followers","following_url":"https://api.github.com/users/JoBrad/following{/other_user}","gists_url":"https://api.github.com/users/JoBrad/gists{/gist_id}","starred_url":"https://api.github.com/users/JoBrad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoBrad/subscriptions","organizations_url":"https://api.github.com/users/JoBrad/orgs","repos_url":"https://api.github.com/users/JoBrad/repos","events_url":"https://api.github.com/users/JoBrad/events{/privacy}","received_events_url":"https://api.github.com/users/JoBrad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-06T15:47:25Z","updated_at":"2016-10-08T14:28:33Z","closed_at":"2016-10-08T14:28:33Z","body":"Line 34 of templateFromFileCommand.ts references a variable (filename) that hasn't been set. This causes the fs.writeFile command to fail, because it's trying to write file contents into a directory. It should be updated to reference the basename:\r\n```js\r\n        let templateFile = path.join(templatesManager.getTemplatesDir(), path.basename(filePath));\r\n```"},"comment":{"url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/issues/comments/252427458","html_url":"https://github.com/brpaz/vscode-file-templates-ext/issues/4#issuecomment-252427458","issue_url":"https://api.github.com/repos/brpaz/vscode-file-templates-ext/issues/4","id":252427458,"user":{"login":"brpaz","id":184563,"avatar_url":"https://avatars.githubusercontent.com/u/184563?v=3","gravatar_id":"","url":"https://api.github.com/users/brpaz","html_url":"https://github.com/brpaz","followers_url":"https://api.github.com/users/brpaz/followers","following_url":"https://api.github.com/users/brpaz/following{/other_user}","gists_url":"https://api.github.com/users/brpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/brpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brpaz/subscriptions","organizations_url":"https://api.github.com/users/brpaz/orgs","repos_url":"https://api.github.com/users/brpaz/repos","events_url":"https://api.github.com/users/brpaz/events{/privacy}","received_events_url":"https://api.github.com/users/brpaz/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T14:28:33Z","updated_at":"2016-10-08T14:28:33Z","body":"Fixed by PR #5 "}}
{"actor":{"display_login":"brpaz"}}