{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/13967","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/13967/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/13967/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/13967/events","html_url":"https://github.com/Microsoft/vscode/issues/13967","id":183815201,"number":13967,"title":"Wrong value show for `this` on hover in es6 arrow syntax","user":{"login":"weinand","id":1898161,"avatar_url":"https://avatars.githubusercontent.com/u/1898161?v=3","gravatar_id":"","url":"https://api.github.com/users/weinand","html_url":"https://github.com/weinand","followers_url":"https://api.github.com/users/weinand/followers","following_url":"https://api.github.com/users/weinand/following{/other_user}","gists_url":"https://api.github.com/users/weinand/gists{/gist_id}","starred_url":"https://api.github.com/users/weinand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weinand/subscriptions","organizations_url":"https://api.github.com/users/weinand/orgs","repos_url":"https://api.github.com/users/weinand/repos","events_url":"https://api.github.com/users/weinand/events{/privacy}","received_events_url":"https://api.github.com/users/weinand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/bug","name":"bug","color":"E57E7E"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/debug","name":"debug","color":"1d76db"}],"state":"open","locked":false,"assignee":{"login":"isidorn","id":1926584,"avatar_url":"https://avatars.githubusercontent.com/u/1926584?v=3","gravatar_id":"","url":"https://api.github.com/users/isidorn","html_url":"https://github.com/isidorn","followers_url":"https://api.github.com/users/isidorn/followers","following_url":"https://api.github.com/users/isidorn/following{/other_user}","gists_url":"https://api.github.com/users/isidorn/gists{/gist_id}","starred_url":"https://api.github.com/users/isidorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isidorn/subscriptions","organizations_url":"https://api.github.com/users/isidorn/orgs","repos_url":"https://api.github.com/users/isidorn/repos","events_url":"https://api.github.com/users/isidorn/events{/privacy}","received_events_url":"https://api.github.com/users/isidorn/received_events","type":"User","site_admin":false},"assignees":[{"login":"isidorn","id":1926584,"avatar_url":"https://avatars.githubusercontent.com/u/1926584?v=3","gravatar_id":"","url":"https://api.github.com/users/isidorn","html_url":"https://github.com/isidorn","followers_url":"https://api.github.com/users/isidorn/followers","following_url":"https://api.github.com/users/isidorn/following{/other_user}","gists_url":"https://api.github.com/users/isidorn/gists{/gist_id}","starred_url":"https://api.github.com/users/isidorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isidorn/subscriptions","organizations_url":"https://api.github.com/users/isidorn/orgs","repos_url":"https://api.github.com/users/isidorn/repos","events_url":"https://api.github.com/users/isidorn/events{/privacy}","received_events_url":"https://api.github.com/users/isidorn/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2016-10-18T22:04:20Z","updated_at":"2016-10-24T12:15:17Z","closed_at":null,"body":"_From @ventsislav-georgiev on October 18, 2016 13:25_\n\nThe **ES6** `arrow syntax` preserves `this` to be the parent scope. However, in VSCode node debugging the on hover provider shows the `bind`-ed value of `this`, which is really confusing while debugging.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/5616486/19479439/69c70a20-954f-11e6-9df3-351e68782a54.png)\r\n> Note: that evaluation or `console.log` in the debug console shows the correct value of `this`.\r\n\r\n**VSCode version:**\r\n1.6.1\r\n\r\n**Node Debug version:**\r\n1.6.10\r\n\r\n**Code to reproduce**\r\n```js\r\n(function() { \r\n\tconsole.log(`parentScope: ${this.fake}`);\r\n\r\n\t(() => { \r\n\t\tconsole.log(`childScope: ${this.fake}`);\r\n\t\tdebugger;\r\n\t}).call({ innerFake: \"innerFakeValue\" }); \r\n\r\n}).call({ fake: \"fakeValue\" });\r\n```\n\n_Copied from original issue: Microsoft/vscode-node-debug#103_"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/255723872","html_url":"https://github.com/Microsoft/vscode/issues/13967#issuecomment-255723872","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/13967","id":255723872,"user":{"login":"adelphes","id":13035517,"avatar_url":"https://avatars.githubusercontent.com/u/13035517?v=3","gravatar_id":"","url":"https://api.github.com/users/adelphes","html_url":"https://github.com/adelphes","followers_url":"https://api.github.com/users/adelphes/followers","following_url":"https://api.github.com/users/adelphes/following{/other_user}","gists_url":"https://api.github.com/users/adelphes/gists{/gist_id}","starred_url":"https://api.github.com/users/adelphes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adelphes/subscriptions","organizations_url":"https://api.github.com/users/adelphes/orgs","repos_url":"https://api.github.com/users/adelphes/repos","events_url":"https://api.github.com/users/adelphes/events{/privacy}","received_events_url":"https://api.github.com/users/adelphes/received_events","type":"User","site_admin":false},"created_at":"2016-10-24T12:15:17Z","updated_at":"2016-10-24T12:15:17Z","body":"As a workaround, adding **this** as an explicit watch value appears to show the correct value. Still, having the hover and variable windows showing the wrong value is incredibly confusing during debugging."}}
{"actor":{"display_login":"adelphes"}}