{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/1556","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/1556/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/1556/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/1556/events","html_url":"https://github.com/Microsoft/vscode/issues/1556","id":123375934,"number":1556,"title":"Can extensions use async/await","user":{"login":"egamma","id":172399,"avatar_url":"https://avatars.githubusercontent.com/u/172399?v=3","gravatar_id":"","url":"https://api.github.com/users/egamma","html_url":"https://github.com/egamma","followers_url":"https://api.github.com/users/egamma/followers","following_url":"https://api.github.com/users/egamma/following{/other_user}","gists_url":"https://api.github.com/users/egamma/gists{/gist_id}","starred_url":"https://api.github.com/users/egamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egamma/subscriptions","organizations_url":"https://api.github.com/users/egamma/orgs","repos_url":"https://api.github.com/users/egamma/repos","events_url":"https://api.github.com/users/egamma/events{/privacy}","received_events_url":"https://api.github.com/users/egamma/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/question","name":"question","color":"E2A1C2"}],"state":"closed","locked":false,"assignee":{"login":"egamma","id":172399,"avatar_url":"https://avatars.githubusercontent.com/u/172399?v=3","gravatar_id":"","url":"https://api.github.com/users/egamma","html_url":"https://github.com/egamma","followers_url":"https://api.github.com/users/egamma/followers","following_url":"https://api.github.com/users/egamma/following{/other_user}","gists_url":"https://api.github.com/users/egamma/gists{/gist_id}","starred_url":"https://api.github.com/users/egamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egamma/subscriptions","organizations_url":"https://api.github.com/users/egamma/orgs","repos_url":"https://api.github.com/users/egamma/repos","events_url":"https://api.github.com/users/egamma/events{/privacy}","received_events_url":"https://api.github.com/users/egamma/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/8","html_url":"https://github.com/Microsoft/vscode/milestones/Backlog","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/8/labels","id":1412124,"number":8,"title":"Backlog","description":"Work not yet planned for a specific release.","creator":{"login":"chrisdias","id":1487073,"avatar_url":"https://avatars.githubusercontent.com/u/1487073?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisdias","html_url":"https://github.com/chrisdias","followers_url":"https://api.github.com/users/chrisdias/followers","following_url":"https://api.github.com/users/chrisdias/following{/other_user}","gists_url":"https://api.github.com/users/chrisdias/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdias/subscriptions","organizations_url":"https://api.github.com/users/chrisdias/orgs","repos_url":"https://api.github.com/users/chrisdias/repos","events_url":"https://api.github.com/users/chrisdias/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdias/received_events","type":"User","site_admin":false},"open_issues":571,"closed_issues":93,"state":"open","created_at":"2015-11-15T10:30:19Z","updated_at":"2015-12-22T17:25:46Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-12-21T22:55:00Z","updated_at":"2015-12-22T21:12:43Z","closed_at":"2015-12-22T17:25:46Z","body":"Using async/await works fine in a simple samples: https://github.com/egamma/vscode-extension-async  (target set to `ES6`).\r\n\r\nThis extension  https://github.com/aaronpowell/vscode-espruino (branch async-await) compiles without errors but failes to load with:\r\n```\r\nLoading development extension at c:/Users/egamma/Projects/vscode-espruino\r\nActivating extension `aaronpowell.vscode-espruino` failed: Unexpected token {.\r\n[Plugin Host] Activating extension `aaronpowell.vscode-espruino` failed: Unexpected token {.\r\n[Plugin Host] Activating extension `aaronpowell.vscode-espruino` failed:  Unexpected token {\r\n[Plugin Host] Here is the error stack:  SyntaxError: Unexpected token {\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:413:25)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.n._load (c:\\Program Files (x86)\\Microsoft VS Code\\resources\\app\\out\\vs\\workbench\\node\\pluginHostProcess.js:19:14947)\r\n    at Module.require (module.js:365:17)\r\n    at require (module.js:384:17)\r\n    at Object.<anonymous> (c:\\Users\\egamma\\Projects\\vscode-espruino\\out\\src\\extension.js:15:28)\r\n    at Module._compile (module.js:434:26)\r\n```"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/166730785","html_url":"https://github.com/Microsoft/vscode/issues/1556#issuecomment-166730785","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/1556","id":166730785,"user":{"login":"aaronpowell","id":434140,"avatar_url":"https://avatars.githubusercontent.com/u/434140?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronpowell","html_url":"https://github.com/aaronpowell","followers_url":"https://api.github.com/users/aaronpowell/followers","following_url":"https://api.github.com/users/aaronpowell/following{/other_user}","gists_url":"https://api.github.com/users/aaronpowell/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronpowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronpowell/subscriptions","organizations_url":"https://api.github.com/users/aaronpowell/orgs","repos_url":"https://api.github.com/users/aaronpowell/repos","events_url":"https://api.github.com/users/aaronpowell/events{/privacy}","received_events_url":"https://api.github.com/users/aaronpowell/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T21:12:43Z","updated_at":"2015-12-22T21:12:43Z","body":"Wonder if it's worth mentioning that you _can_ use it, but you need to compile to ES6 so check what ES6 features are used and their Node.js support."}}