{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/54","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/54/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/54/events","html_url":"https://github.com/Microsoft/vscode/issues/54","id":117624077,"number":54,"title":"ES6 jsconfig.json error","user":{"login":"ron-wade","id":2918322,"avatar_url":"https://avatars.githubusercontent.com/u/2918322?v=3","gravatar_id":"","url":"https://api.github.com/users/ron-wade","html_url":"https://github.com/ron-wade","followers_url":"https://api.github.com/users/ron-wade/followers","following_url":"https://api.github.com/users/ron-wade/following{/other_user}","gists_url":"https://api.github.com/users/ron-wade/gists{/gist_id}","starred_url":"https://api.github.com/users/ron-wade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron-wade/subscriptions","organizations_url":"https://api.github.com/users/ron-wade/orgs","repos_url":"https://api.github.com/users/ron-wade/repos","events_url":"https://api.github.com/users/ron-wade/events{/privacy}","received_events_url":"https://api.github.com/users/ron-wade/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jrieken","id":1794099,"avatar_url":"https://avatars.githubusercontent.com/u/1794099?v=3","gravatar_id":"","url":"https://api.github.com/users/jrieken","html_url":"https://github.com/jrieken","followers_url":"https://api.github.com/users/jrieken/followers","following_url":"https://api.github.com/users/jrieken/following{/other_user}","gists_url":"https://api.github.com/users/jrieken/gists{/gist_id}","starred_url":"https://api.github.com/users/jrieken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrieken/subscriptions","organizations_url":"https://api.github.com/users/jrieken/orgs","repos_url":"https://api.github.com/users/jrieken/repos","events_url":"https://api.github.com/users/jrieken/events{/privacy}","received_events_url":"https://api.github.com/users/jrieken/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-11-18T16:26:14Z","updated_at":"2015-11-18T17:24:23Z","closed_at":null,"body":"I am incorrectly getting the following error, **\"This can only be used with ES6. Make sure to have a jsconfig.json-file which sets the target to ES6\"**.\r\n\r\nFurthermore, I think I may have stumbled upon a weird case where if the start of the file name is \"temp\" as in \"temp.js\", \"temporary.js\", or \"temp123.js\" it will cause this error.\r\n\r\nTo reproduce:\r\nCreate a file called temp.js with some ES6 code, such as:\r\n```\r\nlet x = 10\r\n```\r\nThe above error is now showing. To fix it, create the jsconfig.json file which sets the target to ES6:\r\n```\r\n{\r\n\t\"compilerOptions\": {\r\n\t\t\"target\": \"ES6\"\r\n\t}\r\n}\r\n```\r\nThe error is still showing, now incorrectly.\r\n\r\nIf I rename \"temp.js\" to \"test.js\" (or anything that doesn't start with 'temp') the error goes away. Or, if I create a files array in jsconfig.json which lists \"temp.js\", the error goes away:\r\n```\r\n{\r\n\t\"compilerOptions\": {\r\n\t\t\"target\": \"ES6\"\r\n\t},\r\n\t\"files\": [\r\n\t\t\"temp.js\"\r\n\t]\r\n}\r\n```\r\nI don't want to have to do this for every file in my project.\r\n\r\nI'm running on Windows 7, 64-bit.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/157786243","html_url":"https://github.com/Microsoft/vscode/issues/54#issuecomment-157786243","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/54","id":157786243,"user":{"login":"lllama","id":598411,"avatar_url":"https://avatars.githubusercontent.com/u/598411?v=3","gravatar_id":"","url":"https://api.github.com/users/lllama","html_url":"https://github.com/lllama","followers_url":"https://api.github.com/users/lllama/followers","following_url":"https://api.github.com/users/lllama/following{/other_user}","gists_url":"https://api.github.com/users/lllama/gists{/gist_id}","starred_url":"https://api.github.com/users/lllama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lllama/subscriptions","organizations_url":"https://api.github.com/users/lllama/orgs","repos_url":"https://api.github.com/users/lllama/repos","events_url":"https://api.github.com/users/lllama/events{/privacy}","received_events_url":"https://api.github.com/users/lllama/received_events","type":"User","site_admin":false},"created_at":"2015-11-18T17:24:23Z","updated_at":"2015-11-18T17:24:23Z","body":"I'm seeing a similar thing when editing Vue files (http://vuejs.org/guide/application.html#Single_File_Components). These are HTML-like and will have a script tag that contains JS.\r\n![image](https://cloud.githubusercontent.com/assets/598411/11248393/d603c6fe-8e18-11e5-832c-63c820703760.png)\r\n\r\nI have the following jsconfig.json file:\r\n`{\r\n\t\"compilerOptions\": {\r\n\t\t\"target\": \"ES6\",\r\n\t\t\"module\": \"system\"\r\n\t},\r\n\t\"files\": [\r\n\t\t\"Editor.vue\"\r\n\t]\r\n}\r\n`\r\n\r\n(with Editor.vue being my file). I'm manually setting the filetype to HTML as well.\r\n"}}