{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/35318","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/35318/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/35318/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/35318/events","html_url":"https://github.com/Microsoft/vscode/issues/35318","id":261327289,"number":35318,"title":"Intellisense peek and navigation not working for global variables","user":{"login":"shashi-raja","id":31207646,"avatar_url":"https://avatars0.githubusercontent.com/u/31207646?v=4","gravatar_id":"","url":"https://api.github.com/users/shashi-raja","html_url":"https://github.com/shashi-raja","followers_url":"https://api.github.com/users/shashi-raja/followers","following_url":"https://api.github.com/users/shashi-raja/following{/other_user}","gists_url":"https://api.github.com/users/shashi-raja/gists{/gist_id}","starred_url":"https://api.github.com/users/shashi-raja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashi-raja/subscriptions","organizations_url":"https://api.github.com/users/shashi-raja/orgs","repos_url":"https://api.github.com/users/shashi-raja/repos","events_url":"https://api.github.com/users/shashi-raja/events{/privacy}","received_events_url":"https://api.github.com/users/shashi-raja/received_events","type":"User","site_admin":false},"labels":[{"id":291124272,"url":"https://api.github.com/repos/Microsoft/vscode/labels/javascript","name":"javascript","color":"1d76db","default":false},{"id":256129998,"url":"https://api.github.com/repos/Microsoft/vscode/labels/question","name":"question","color":"708090","default":true}],"state":"closed","locked":false,"assignee":{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false},"assignees":[{"login":"mjbvz","id":12821956,"avatar_url":"https://avatars2.githubusercontent.com/u/12821956?v=4","gravatar_id":"","url":"https://api.github.com/users/mjbvz","html_url":"https://github.com/mjbvz","followers_url":"https://api.github.com/users/mjbvz/followers","following_url":"https://api.github.com/users/mjbvz/following{/other_user}","gists_url":"https://api.github.com/users/mjbvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mjbvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjbvz/subscriptions","organizations_url":"https://api.github.com/users/mjbvz/orgs","repos_url":"https://api.github.com/users/mjbvz/repos","events_url":"https://api.github.com/users/mjbvz/events{/privacy}","received_events_url":"https://api.github.com/users/mjbvz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2017-09-28T13:55:12Z","updated_at":"2017-10-11T06:27:45Z","closed_at":"2017-10-11T01:25:26Z","author_association":"NONE","body":"<!-- Do you have a question? Please ask it on http://stackoverflow.com/questions/tagged/vscode. -->I am writing api tests using javascript+mocha in visual studio code. I have created a file **testData.js** which contains\r\n\r\n` exports.name = 'test';`\r\nNow I have defined a **global variable** in setup.js and required that setup.js in **mocha.opts** file, which basically requires everything in setup.js and you can then access them without directly requiring them in your code.\r\n\r\n`global.testData = require(./testData.js);`\r\nNow in my **test.js**  file I am using\r\n\r\n`name = testData.name;`\r\nI am not able to traverse/peak to testData.js upon ctrl+click on testData.**name**. I am able to do so in webstorm.\r\nBut if I include below code in test.js then intellisense works fine but it defeats my purpose of using global variable-\r\n```\r\nconst testData = require(./testData.js);\r\nname = testData.name;\r\n```\r\n How can I configure visual studio code to give intellisense in this scenario?\r\n\r\n<!-- Use Help > Report Issues to prefill these. -->\r\n- VSCode Version:1.16.1\r\n- OS Version:macOS Sierra version 10.12.6"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/335696117","html_url":"https://github.com/Microsoft/vscode/issues/35318#issuecomment-335696117","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/35318","id":335696117,"user":{"login":"shashi-raja","id":31207646,"avatar_url":"https://avatars0.githubusercontent.com/u/31207646?v=4","gravatar_id":"","url":"https://api.github.com/users/shashi-raja","html_url":"https://github.com/shashi-raja","followers_url":"https://api.github.com/users/shashi-raja/followers","following_url":"https://api.github.com/users/shashi-raja/following{/other_user}","gists_url":"https://api.github.com/users/shashi-raja/gists{/gist_id}","starred_url":"https://api.github.com/users/shashi-raja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shashi-raja/subscriptions","organizations_url":"https://api.github.com/users/shashi-raja/orgs","repos_url":"https://api.github.com/users/shashi-raja/repos","events_url":"https://api.github.com/users/shashi-raja/events{/privacy}","received_events_url":"https://api.github.com/users/shashi-raja/received_events","type":"User","site_admin":false},"created_at":"2017-10-11T06:27:45Z","updated_at":"2017-10-11T06:27:45Z","author_association":"NONE","body":"I think it is more of an issue than a question. Visual stdio code should detect this global variable relationship like webstorm and should allow to traverse to that particular file. "}}
{"actor":{"display_login":"shashi-raja"}}